-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (82 loc) · 1.58 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: "3.7"
services:
nginx:
build:
context: ./nginx
ports:
- ${HTTP_PORT}:80
- 8000-8100:8000-8100
restart: always
volumes:
- ./src/:/var/www/
- ./nginx/conf/sites-enabled:/etc/nginx/sites-enabled
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- php7
- php5
- db
networks:
- legacy
environment:
SERVICE_NAME: nginx
SERVICE_TAGS: dev
php7:
build:
context: ./php_7.3
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./src/:/var/www/
networks:
- legacy
environment:
SERVICE_NAME: php7.3
SERVICE_TAGS: dev
php5:
build:
context: ./php_5.6
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./src/:/var/www/
networks:
- legacy
environment:
SERVICE_NAME: php5.6
SERVICE_TAGS: dev
db:
image: mysql:5.7.22
container_name: db
restart: unless-stopped
tty: true
ports:
- "3308:3306"
environment:
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- ./mysql/dbdata:/var/lib/mysql/
- ./mysql/my.cnf:/etc/mysql/my.cnf
networks:
- legacy
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
environment:
- PMA_ARBITRARY=1
restart: always
ports:
- ${PMA_PORT}:80
volumes:
- /sessions
networks:
- legacy
depends_on:
- db
networks:
legacy:
driver: bridge
volumes:
dbdata:
driver: local