-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
260 lines (237 loc) · 7.39 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
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
252
253
254
255
256
257
258
259
260
version: "2"
services:
# registry:
# restart: always
# image: registry:2
# ports:
# - 5000:5000
# environment:
# REGISTRY_HTTP_TLS_CERTIFICATE: /certs/domain.crt
# REGISTRY_HTTP_TLS_KEY: /certs/domain.key
# REGISTRY_AUTH: htpasswd
# REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
# REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
# volumes:
# - /registry/data:/var/lib/registry
# - /registry/certs:/certs
# - /registry/auth:/auth
# labels:
# traefik.backend: registry
# traefik.port: '5000'
# traefik.frontend.rule: Host:registry.docker.localhost
mariadb:
# image: wodby/mariadb:10.1-2.3.3
image: wodby/mariadb:10.1-2.3.5
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
volumes:
- ./mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.
- ./mariadb/data/on/host:/var/lib/mysql # I want to manage volumes manually.
php:
# 1. Images with vanilla Drupal – wodby/drupal:[DRUPAL_VERSION]-[PHP_VERSION]-[STABILITY_TAG].
image: wodby/drupal:8-7.1-3.3.2
# image: wodby/drupal:8-7.1-2.4.4
# image: wodby/drupal:8-7.0-2.4.4
# image: wodby/drupal:7-7.1-2.4.4
# image: wodby/drupal:7-7.0-2.4.4
# image: wodby/drupal:7-5.6-2.4.4
# image: wodby/drupal:6-5.6-2.4.4
# image: wodby/drupal:6-5.3-2.4.4
# 2. Images without Drupal – wodby/drupal-php:[PHP_VERSION]-[STABILITY_TAG].
# image: wodby/drupal-php:7.1-2.4.3
# image: wodby/drupal-php:7.0-2.4.3
# image: wodby/drupal-php:5.6-2.4.3
# image: wodby/drupal-php:5.3-2.4.3
environment:
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
DB_HOST: mariadb
DB_USER: drupal
DB_PASSWORD: drupal
DB_NAME: drupal
DB_DRIVER: mysql
# PHP_XDEBUG: 1
# PHP_XDEBUG_DEFAULT_ENABLE: 1
# PHP_XDEBUG_REMOTE_CONNECT_BACK: 0 # This is needed to respect remote.host setting below
# PHP_XDEBUG_REMOTE_HOST: "10.254.254.254" # You will also need to 'sudo ifconfig lo0 alias 10.254.254.254'
volumes:
- ./www/:/var/www/html
# Options for macOS users (https://docker4drupal.readthedocs.io/en/latest/macos)
# - codebase:/var/www/html:cached # User-guided caching
# - docker-sync:/var/www/html # Docker-sync
nginx:
# wodby/drupal-nginx:[DRUPAL_VERSION]-[NGINX_VERSION]-[STABILITY_TAG].
image: wodby/drupal-nginx:8-1.13-3.0.2
# image: wodby/drupal-nginx:8-1.13-2.4.2
# image: wodby/drupal-nginx:7-1.13-2.4.2
# image: wodby/drupal-nginx:6-1.13-2.4.2
# image: wodby/drupal-nginx:8-1.12-2.4.2
# image: wodby/drupal-nginx:7-1.12-2.4.2
# image: wodby/drupal-nginx:6-1.12-2.4.2
depends_on:
- php
environment:
NGINX_STATIC_CONTENT_OPEN_FILE_CACHE: "off"
NGINX_ERROR_LOG_LEVEL: debug
NGINX_BACKEND_HOST: php
NGINX_SERVER_ROOT: /var/www/html/web/
volumes:
- ./www/:/var/www/html
# Options for macOS users (https://docker4drupal.readthedocs.io/en/latest/macos)
# - codebase:/var/www/html:cached # User-guided caching
# - docker-sync:/var/www/html # Docker-sync
labels:
traefik.backend: nginx
traefik.port: '80'
traefik.frontend.rule: Host:drupal.docker.localhost
# apache:
# image: wodby/drupal-apache:2.4-2.0.2
# depends_on:
# - php
# environment:
# APACHE_LOG_LEVEL: debug
# APACHE_BACKEND_HOST: php
# APACHE_SERVER_ROOT: /var/www/html/web
# volumes:
# - codebase:/var/www/html
## Options for macOS users (https://docker4drupal.readthedocs.io/en/latest/macos)
## - codebase:/var/www/html:cached # User-guided caching
## - docker-sync:/var/www/html # Docker-sync
# labels:
# traefik.backend: apache
# traefik.port: '80"
# traefik.frontend.rule: Host:drupal.docker.localhost
# varnish:
# image: wodby/drupal-varnish:4.1-2.2.1
# depends_on:
# - nginx
# environment:
# VARNISH_SECRET: secret
# VARNISH_BACKEND_HOST: nginx
# VARNISH_BACKEND_PORT: 80
# labels:
# traefik.backend: varnish
# traefik.port: '6081'
# traefik.frontend.rule: Host:varnish.drupal.docker.localhost
# redis:
# image: wodby/redis:4.0-2.1.4
# adminer:
# image: wodby/adminer:4.3-1.1.0
# environment:
# ADMINER_SALT: adminer-salt
# labels:
# traefik.backend: adminer
# traefik.port: '9000'
# traefik.frontend.rule: Host:adminer.drupal.docker.localhost
pma:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: mariadb
PMA_USER: drupal
PMA_PASSWORD: drupal
PHP_UPLOAD_MAX_FILESIZE: 1G
PHP_MAX_INPUT_VARS: 1G
labels:
traefik.backend: pma
traefik.port: '80'
traefik.frontend.rule: Host:pma.drupal.docker.localhost
# solr:
## wodby/drupal-solr:[DRUPAL_VERSION]-[SOLR_VERSION]-[STABILITY_TAG].
# image: wodby/drupal-solr:8-6.6-2.3.0
## image: wodby/drupal-solr:8-6.5-2.2.0
## image: wodby/drupal-solr:8-6.4-2.2.0
## image: wodby/drupal-solr:8-6.3-2.2.0
## image: wodby/drupal-solr:8-5.5-2.2.0
## image: wodby/drupal-solr:7-5.4-2.2.0
# environment:
# SOLR_HEAP: 1024m
# labels:
# traefik.backend: solr
# traefik.port: '8983'
# traefik.frontend.rule: Host:solr.drupal.docker.localhost
mailhog:
image: mailhog/mailhog
labels:
traefik.backend: mailhog
traefik.port: '8025'
traefik.frontend.rule: Host:mailhog.drupal.docker.localhost
# working_dir: /app
# command: sh -c 'gulp'
# command: 'gulp' node:
# image: node:alpine
node:
build: gulp
# working_dir: /home/node/app
environment:
- NODE_ENV=production
links:
- nginx
labels:
traefik.backend: node
traefik.port: '3000'
traefik.frontend.rule: Host:front.drupal.docker.localhost
expose:
- "3001"
- "3000"
- "8081"
ports:
- "3000:3000"
- "3001:3001"
volumes:
- ./www/web/themes/custom/monoset/:/home/node/app/theme/
command: "gulp"
# jenkins:
# build: jenkins
# working_dir: /app
# links:
# - nginx
# labels:
# traefik.backend: jenkins
## traefik.port=8080'
# traefik.frontend.rule: Host:jenkins.drupal.docker.localhost
## expose:
## - "8090"
## ports:
## - "8080:8080"
## - "5000:5000"
# volumes:
# - /usr/bin/docker:/usr/bin/docker
# - /var/run/docker.sock:/var/run/docker.sock
# - ./jenkins/jenkins_home:/var/jenkins_home
# memcached:
# image: wodby/memcached:1.4-2.0.0
# rsyslog:
# image: wodby/rsyslog
# athenapdf:
# image: arachnysdocker/athenapdf-service
# environment:
# WEAVER_AUTH_KEY: weaver-auth-key
# WEAVER_ATHENA_CMD: "athenapdf -S"
# WEAVER_MAX_WORKERS: 10
# WEAVER_MAX_CONVERSION_QUEUE: 50
# WEAVER_WORKER_TIMEOUT: 90
# WEAVER_CONVERSION_FALLBACK: false
portainer:
image: portainer/portainer
command: --no-auth -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
traefik.backend: portainer
traefik.port: '9000'
traefik.frontend.rule: Host:portainer.drupal.docker.localhost
traefik:
image: traefik
command: -c /dev/null --web --docker --logLevel=INFO
ports:
- '80:80'
# - '8080:8080' # Dashboard
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
codebase:
## Docker-sync for macOS users
# docker-sync:
# external: true