forked from yeszao/dnmp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
140 lines (132 loc) · 2.85 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: "3"
services:
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./www/:/var/www/html/:rw
- ./conf/conf.d:/etc/nginx/conf.d/:ro
- ./conf/nginx.conf:/etc/nginx/nginx.conf:ro
- ./log/:/var/log/dnmp/:rw
restart: always
networks:
- net-php72
- net-php56
- net-php54
php72:
build:
context: .
args:
PHP_VERSION: 7.2
SOURCE_LIST: stretch
XDEBUG_VERSION: 2.6.1
SWOOLE_VERSION: 4.2.1
SUPPORT_MCRYPT: "false"
BUILT_IN_OPCACHE: "true"
expose:
- "9000"
volumes:
- ./www/:/var/www/html/:rw
- ./conf/php.ini:/usr/local/etc/php/php.ini:ro
- ./conf/php-fpm.conf:/usr/local/etc/php-fpm.d/www.conf:rw
- ./log/:/var/log/dnmp/:rw
restart: always
cap_add:
- SYS_PTRACE
networks:
- net-php72
- net-mysql
- net-redis
php56:
build:
context: .
args:
PHP_VERSION: 5.6
SOURCE_LIST: jessie
XDEBUG_VERSION: 2.5.5
SWOOLE_VERSION: 2.0.11
SUPPORT_MCRYPT: "true"
BUILT_IN_OPCACHE: "true"
expose:
- "9000"
volumes:
- ./www/:/var/www/html/:rw
- ./conf/php.ini:/usr/local/etc/php/php.ini:ro
- ./conf/php-fpm.conf:/usr/local/etc/php-fpm.d/www.conf:rw
- ./log/:/var/log/dnmp/:rw
restart: always
cap_add:
- SYS_PTRACE
networks:
- net-php56
- net-mysql
- net-redis
php54:
build:
context: .
args:
PHP_VERSION: 5.4
SOURCE_LIST: jessie
XDEBUG_VERSION: 2.4.1
SWOOLE_VERSION: "false"
SUPPORT_MCRYPT: "true"
BUILT_IN_OPCACHE: "false"
expose:
- "9000"
volumes:
- ./www/:/var/www/html/:rw
- ./conf/php.ini:/usr/local/etc/php/php.ini:ro
- ./conf/php-fpm.conf:/usr/local/etc/php-fpm.d/www.conf:rw
- ./log/:/var/log/dnmp/:rw
restart: always
cap_add:
- SYS_PTRACE
networks:
- net-php54
- net-mysql
- net-redis
mysql:
image: mysql:8.0
ports:
- "3306:3306"
volumes:
- ./conf/mysql.cnf:/etc/mysql/conf.d/mysql.cnf:ro
- ./mysql/:/var/lib/mysql/:rw
restart: always
networks:
- net-mysql
environment:
MYSQL_ROOT_PASSWORD: "123456"
redis:
image: redis:4.0
restart: always
networks:
- net-redis
ports:
- "6379:6379"
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
ports:
- "8080:80"
networks:
- net-mysql
environment:
- PMA_HOST=mysql
- PMA_PORT=3306
phpredisadmin:
image: erikdubbelboer/phpredisadmin:latest
ports:
- "8081:80"
networks:
- net-redis
environment:
- REDIS_1_HOST=redis
- REDIS_1_PORT=6379
networks:
net-php72:
net-php56:
net-php54:
net-mysql:
net-redis: