-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (48 loc) · 1.17 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '3'
services:
server:
build:
context: ./environment/apache/
dockerfile: apache-dockerfile
args:
uid: 1000
container_name: cake-apache-server
environment:
- APACHE_RUN_USER=#1000
- APACHE_RUN_GROUP=#1000
restart: always
ports:
- '8080:80'
volumes:
- ./app:/var/www/html/
- ./environment/apache/000-default.conf/:/etc/apache2/sites-available/000-default.conf
database:
image: mysql:8.0
container_name: cake-mysql-database
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: admin
MYSQL_PASSWORD: root
ports:
- "3306:3306"
volumes:
- dbdata:/var/lib/mysql
- ./environment/mysql/:/tmp/database
command: mysqld --init-file="/tmp/database/install_db.sql"
restart: unless-stopped
database-management:
image: phpmyadmin/phpmyadmin
container_name: cake-phpmyadmin
depends_on:
- database
environment:
MYSQL_ROOT_PASSWORD: root
PMA_USER: root
PMA_HOST: database
PMA_PORT: 3306
PMA_PASSWORD: root
restart: unless-stopped
ports:
- 8082:80
volumes:
dbdata: