forked from kalamuna/drupal-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
174 lines (156 loc) · 4.78 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
# Usage: Replace <MYPROJECT> with your project short code.
version: "2"
services:
mariadb:
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.
php:
image: wodby/drupal-php:7.1-3.0.0
environment:
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
PHP_FPM_CLEAR_ENV: "no"
DB_HOST: <MYPROJECT>_mariadb_1
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
PHP_XDEBUG_REMOTE_HOST: "10.254.254.254"
#PHP_XDEBUG_PROFILER_OUTPUT_DIR: /mnt/files/xdebug/profiler
#PHP_XDEBUG_TRACE_OUTPUT_DIR: /mnt/files/xdebug/traces
volumes:
- ./:/var/www/html:cached
nginx:
image: wodby/drupal-nginx:8-1.13-3.0.1
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:
- ./:/var/www/html:cached
labels:
- 'traefik.backend=<MYPROJECT>_nginx_1'
- 'traefik.port=80'
- 'traefik.frontend.rule=Host:<MYPROJECT>.docker.localhost'
# varnish:
# image: wodby/drupal-varnish:4.1-2.2.0
# depends_on:
# - nginx
# environment:
# VARNISH_SECRET: secret
# VARNISH_BACKEND_HOST: nginx
# VARNISH_BACKEND_PORT: 80
# labels:
# - 'traefik.backend=<MYPROJECT>_varnish_1'
# - 'traefik.port=6081'
# - 'traefik.frontend.rule=Host:varnish.<MYPROJECT>.docker.localhost'
# redis:
# image: wodby/redis:4.0-2.1.3
# adminer:
# image: wodby/adminer:4.3-1.1.0
# environment:
# ADMINER_SALT: adminer-salt
# labels:
# - 'traefik.backend=<MYPROJECT>_adminer_1'
# - 'traefik.port=9000'
# - 'traefik.frontend.rule=Host:adminer.<MYPROJECT>.docker.localhost'
pma:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: <MYPROJECT>_mariadb_1
PMA_USER: drupal
PMA_PASSWORD: drupal
PHP_UPLOAD_MAX_FILESIZE: 1G
PHP_MAX_INPUT_VARS: 1G
labels:
- 'traefik.backend=<MYPROJECT>_pma_1'
- 'traefik.port=80'
- 'traefik.frontend.rule=Host:pma.<MYPROJECT>.docker.localhost'
# solr:
# image: wodby/drupal-solr:8-6.6-2.2.0
# environment:
# SOLR_HEAP: 1024m
# labels:
# - 'traefik.backend=<MYPROJECT>_solr_1'
# - 'traefik.port=8983'
# - 'traefik.frontend.rule=Host:solr.<MYPROJECT>.docker.localhost'
mailhog:
image: mailhog/mailhog
labels:
- 'traefik.backend=<MYPROJECT>_mailhog_1'
- 'traefik.port=8025'
- 'traefik.frontend.rule=Host:mailhog.<MYPROJECT>.docker.localhost'
# nodejs:
# image: wodby/drupal-node:1.0-1.0.0
# environment:
# NODE_SERVICE_KEY: node-service-key
# labels:
# - 'traefik.backend=<MYPROJECT>_nodejs_1'
# - 'traefik.port=8080'
# - 'traefik.frontend.rule=Host:nodejs.<MYPROJECT>.docker.localhost'
# volumes:
# - ./path/to/your/single-page-app:/app
# command: sh -c 'npm install && npm run start'
# node:
# image: node:alpine
# working_dir: /app
# labels:
# - 'traefik.backend=<MYPROJECT>_node_1'
# - 'traefik.port=3000'
# - 'traefik.frontend.rule=Host:front.<MYPROJECT>.docker.localhost'
# expose:
# - "3000"
# volumes:
# - ./path/to/your/single-page-app:/app
# command: sh -c 'npm install && npm run start'
# memcached:
# image: wodby/memcached:1.4-2.0.0
# rsyslog:
# image: wodby/rsyslog
# athenapdf:
# image: arachnysdocker/athenapdf-service:2.10.0
# 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
# blackfire:
# image: blackfire/blackfire
# environment:
# BLACKFIRE_SERVER_ID: XXXXX
# BLACKFIRE_SERVER_TOKEN: YYYYY
# webgrind:
# image: wodby/webgrind:1.5-1.0.0
# environment:
# WEBGRIND_PROFILER_DIR: /mnt/files/xdebug/profiler
# labels:
# - 'traefik.backend=<MYPROJECT>_webgrind_1'
# - 'traefik.port=8080'
# - 'traefik.frontend.rule=Host:webgrind.<MYPROJECT>.docker.localhost'
# volumes:
# - files:/mnt/files
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=<MYPROJECT>_portainer_1'
- 'traefik.port=9000'
- 'traefik.frontend.rule=Host:portainer.<MYPROJECT>.docker.localhost'
#volumes:
# codebase:
# files: