-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
253 lines (232 loc) · 6.11 KB
/
docker-compose.yml
File metadata and controls
253 lines (232 loc) · 6.11 KB
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
name: docker_environment
# php build args template
x-php-build-args: &default-php-build-args
IMAGE: php:7.4-fpm
XDEBUG_VERSION: 3.1.6
UID: ${UID:-1000}
GID: ${GID:-1000}
# php build template
x-php-build: &default-php-build
dockerfile: php
context: ./build
args:
<<: *default-php-build-args
# php template
x-php: &default-php
container_name: php
user: ${UID:-1000}
build:
<<: *default-php-build
volumes:
- ${CONF_FOLDER}/php/php.ini:/usr/local/etc/php/conf.d/php.ini
- ${CONF_FOLDER}/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- ${CONF_FOLDER}/msmtprc/msmtprc:/var/www/.msmtprc:ro
- ${HTML_FOLDER}:/var/www/html/
- ${DATA_FOLDER}/php/coverage:${PHP_COVERAGE_OUTPUT_FOLDER}
- ${DATA_FOLDER}/php/profile:${PHP_PROFILE_OUTPUT_FOLDER}
restart: always
services:
php74:
<<: *default-php
container_name: php7.4
build:
<<: *default-php-build
args:
IMAGE: php:7.4-fpm
XDEBUG_VERSION: 3.1.6
php80:
<<: *default-php
container_name: php8.0
build:
<<: *default-php-build
args:
IMAGE: php:8.0-fpm
XDEBUG_VERSION: 3.4.5
php81:
<<: *default-php
container_name: php8.1
build:
<<: *default-php-build
args:
IMAGE: php:8.1-fpm
XDEBUG_VERSION: 3.4.5
php82:
<<: *default-php
container_name: php8.2
build:
<<: *default-php-build
args:
IMAGE: php:8.2-fpm
XDEBUG_VERSION: 3.4.5
php83:
<<: *default-php
container_name: php8.3
build:
<<: *default-php-build
args:
IMAGE: php:8.3-fpm
XDEBUG_VERSION: 3.4.5
php84:
<<: *default-php
container_name: php8.4
build:
<<: *default-php-build
args:
IMAGE: php:8.4-fpm
XDEBUG_VERSION: 3.4.5
php85:
<<: *default-php
container_name: php8.5
build:
<<: *default-php-build
args:
IMAGE: php:8.5-fpm
XDEBUG_VERSION: 3.4.5
apache:
container_name: apache
build:
dockerfile: apache
context: ./build
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
ports:
- "${APACHE_PORT_AUTO:-88}:88"
- "${APACHE_PORT_443:-443}:443"
- "${APACHE_PORT_74:-74}:74"
- "${APACHE_PORT_80:-80}:80"
- "${APACHE_PORT_81:-81}:81"
- "${APACHE_PORT_82:-82}:82"
- "${APACHE_PORT_83:-83}:83"
- "${APACHE_PORT_84:-84}:84"
- "${APACHE_PORT_85:-85}:85"
volumes:
- ${CONF_FOLDER}/apache/httpd.conf:/usr/local/apache2/conf/httpd.conf
- ${CONF_FOLDER}/apache/httpd-vhosts.conf:/usr/local/apache2/conf/extra/httpd-vhosts.conf
- ${CONF_FOLDER}/certs:/etc/apache/certs
- ${HTML_FOLDER}:/var/www/html/
restart: always
# depends_on:
# - php74
# - php80
# - php81
# - php82
# - php83
# - php84
# - php85
deploy:
replicas: ${ENABLE_APACHE:-0}
nginx:
container_name: nginx
build:
dockerfile: nginx
context: ./build
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
ports:
- "${NGINX_PORT_AUTO:-88}:88"
- "${NGINX_PORT_443:-443}:443"
- "${NGINX_PORT_74:-74}:74"
- "${NGINX_PORT_80:-80}:80"
- "${NGINX_PORT_81:-81}:81"
- "${NGINX_PORT_82:-82}:82"
- "${NGINX_PORT_83:-83}:83"
- "${NGINX_PORT_84:-84}:84"
- "${NGINX_PORT_85:-85}:85"
volumes:
- ${CONF_FOLDER}/nginx:/etc/nginx/conf.d
- ${CONF_FOLDER}/certs:/etc/nginx/certs
- ${HTML_FOLDER}:/var/www/html/
restart: always
# depends_on:
# - php74
# - php80
# - php81
# - php82
# - php83
# - php84
# - php85
deploy:
replicas: ${ENABLE_NGINX:-0}
mariadb:
image: mariadb
container_name: mariadb
restart: unless-stopped
ports:
- "${MARIADB_PORT:-3306}:3306"
volumes:
- ${CONF_FOLDER}/mariadb:/etc/mysql/conf.d
- ${DATA_FOLDER}/mariadb/:/var/lib/mysql
- ${DATA_FOLDER}/dbdump/:/tmp/dbdump
environment:
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
mysql:
image: mysql
container_name: mysql
restart: unless-stopped
ports:
- "${MYSQL_PORT:-3307}:3306"
volumes:
- ${CONF_FOLDER}/mysql:/etc/mysql/conf.d
- ${DATA_FOLDER}/mysql/:/var/lib/mysql
- ${DATA_FOLDER}/dbdump/:/tmp/dbdump
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
adminer:
image: adminer
container_name: adminer
restart: unless-stopped
ports:
- "${ADMINER_PORT:-8080}:8080"
deploy:
replicas: ${ENABLE_ADMINER:-0}
mailpit:
image: axllent/mailpit
container_name: mailpit
restart: unless-stopped
volumes:
- ${CONF_FOLDER}/mailpit/:/conf
- ${DATA_FOLDER}/mailpit/:/data
ports:
- ${MAILPIT_WEB_PORT:-8025}:8025
- ${MAILPIT_SMTP_PORT:-1025}:1025
environment:
MP_MAX_MESSAGES: 5000
MP_DATABASE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
MP_ENABLE_SPAMASSASSIN: postmark
# MP_SMTP_FORWARD_CONFIG: /conf/smtp_forward.yml
# MP_SMTP_FORWARD_PASSWORD: ${COMBODO_SMTP_TEST_PASSWORD}
# MP_SMTP_FORWARD_TO: ${MAILPIT_FORWARD_USER}
MP_SMTP_RELAY_CONFIG: /conf/smtp_relay.yml
MP_SMTP_RELAY_PASSWORD: ${COMBODO_SMTP_TEST_PASSWORD}
MP_SMTP_RELAY_MATCHING: ${MAILPIT_RELAY_MATCHING}
deploy:
replicas: ${ENABLE_MAILPIT:-0}
script_server:
build:
dockerfile: script-server
context: ./build
container_name: script_server
restart: unless-stopped
ports:
- "${SCRIPT_SERVER_PORT:-5000}:5000"
volumes:
- ${CONF_FOLDER}/script-server/conf:/app/conf
- ${DATA_FOLDER}/script-server/scripts:/app/scripts
# For accessing HTML files content (read-only) from scripts
- ${HTML_FOLDER}:/host_html:ro
# For container to container script execution
- /var/run/docker.sock:/var/run/docker.sock
environment:
- TZ=Europe/Paris
deploy:
replicas: ${ENABLE_SCRIPT_SERVER:-0}
kcachegrind:
image: nedix/kcachegrind
ports:
- ${KCACHE_GRIND_WEB_PORT:-8088}:80
volumes:
- ${DATA_FOLDER}/php/profile:/data