-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (69 loc) · 1.5 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
version: '3'
services:
nginx:
image: nginx
volumes:
- ./conf/nginx.conf:/etc/nginx/conf.d/000-default.conf
- ./projects:/var/www/projects
ports:
- 80:80
php7:
image: nezkal/php7
volumes:
- ./conf/php.ini:/usr/local/etc/php/conf.d/custom.ini
- ./projects:/var/www/projects
restart: always
ports:
- 9000:9000
deploy:
restart_policy:
condition: on-failure
delay: 10s
mysql57:
image: mysql
ports:
- 0.0.0.0:3307:3306
environment:
- MYSQL_ROOT_PASSWORD=123456
volumes:
- ./mysql57_data:/var/lib/mysql
- ./sql:/sql
restart: always
deploy:
restart_policy:
condition: on-failure
delay: 10s
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- mysql57
ports:
- 7005:80
environment:
- MYSQL_USERNAME=root
- MYSQL_ROOT_PASSWORD=123456
- PMA_HOST=mysql57
mysql55:
image: mysql:5.5
ports:
- 0.0.0.0:3308:3306
environment:
- MYSQL_ROOT_PASSWORD=123456
volumes:
- ./mysql55_data:/var/lib/mysql
- ./sql:/sql
restart: always
deploy:
restart_policy:
condition: on-failure
delay: 10s
phpmyadmin2:
image: phpmyadmin/phpmyadmin
links:
- mysql55
ports:
- 7006:80
environment:
- MYSQL_USERNAME=root
- MYSQL_ROOT_PASSWORD=12345
- PMA_HOST=mysql55