-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
172 lines (163 loc) · 3.66 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
version: "3"
services:
solr:
image: solr:6-alpine
expose:
- "8983"
entrypoint:
- "docker-entrypoint.sh"
- "solr-create"
- "-c"
- "collection1"
- "-d"
- "/config"
volumes:
- './solr/config:/config'
networks:
- internal
db:
image: mariadb:10.3
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=drupal
- MYSQL_USER=drupal
- MYSQL_PASSWORD=drupal
expose:
- "3306"
networks:
- internal
volumes:
- 'humpback_database:/var/lib/mysql'
- './mysql:/etc/mysql/conf.d'
php:
image: kporras07/docker-php:v1.7
environment:
- PHP_POST_MAX_SIZE=${PHP_POST_MAX_SIZE}
- PHP_UPLOAD_MAX_FILESIZE=${PHP_UPLOAD_MAX_FILESIZE}
user: "${CONTAINER_UID}"
expose:
- "9000"
links:
- db
- solr
- memcached
- blackfire
volumes:
- "./:/var/www/html:delegated"
networks:
- internal
nginx:
image: nginx:alpine
environment:
- VIRTUAL_HOST=${VIRTUAL_HOST-localhost}
labels:
- 'traefik.enable=true'
- 'traefik.backend=${VIRTUAL_HOST}-nginx'
- 'traefik.frontend.rule=Host:${VIRTUAL_HOST-localhost}'
- 'traefik.docker.network=humpback_proxy'
- 'traefik.port=80'
ports:
- "80"
depends_on:
- php
links:
- php
volumes:
- "./:/var/www/html:delegated"
- "./nginx/default.conf:/etc/nginx/conf.d/default.conf"
networks:
- internal
- humpback_proxy
cli:
image: kporras07/docker-drupal-cli:v0.10.9
links:
- php
- nginx
- db
- solr
- memcached
- browser
volumes:
- "./:/var/www/html:delegated"
- "~/.ssh:/.ssh:delegated"
networks:
- internal
memcached:
image: memcached:1-alpine
environment:
# Memcached memory limit in megabytes
- MEMCACHED_MEMORY_LIMIT=128
networks:
- internal
browser:
image: selenium/standalone-chrome-debug:3.6.0
# This helps keep selenium-chrome from crashing because it uses shared memory.
volumes:
- /dev/shm:/dev/shm
links:
- nginx
ports:
- "5900"
networks:
- internal
share:
image: fnichol/ngrok
environment:
- HTTP_PORT=nginx:80
links:
- nginx
ports:
- "4040"
networks:
- internal
varnish:
image: thiagofigueiro/varnish-alpine-docker:3.5
environment:
- VARNISH_BACKEND_ADDRESS=nginx
- VARNISH_BACKEND_PORT=80
- VIRTUAL_HOST=${VIRTUAL_HOST-localhost}
links:
- nginx
ports:
- "80"
networks:
- internal
- humpback_proxy
labels:
- 'traefik.enable=true'
- 'traefik.backend=${VIRTUAL_HOST}-varnish'
- 'traefik.frontend.rule=Host:varnish.${VIRTUAL_HOST-localhost}'
- 'traefik.docker.network=humpback_proxy'
- 'traefik.port=80'
mailhog:
image: mailhog/mailhog:v1.0.0
environment:
- VIRTUAL_HOST=${VIRTUAL_HOST-localhost}
ports:
- "1025"
- "8025"
networks:
- internal
- humpback_proxy
labels:
- 'traefik.enable=true'
- 'traefik.backend=${VIRTUAL_HOST}-mailhog'
- 'traefik.frontend.rule=Host:mailhog.${VIRTUAL_HOST-localhost}'
- 'traefik.docker.network=humpback_proxy'
- 'traefik.port=8025'
blackfire:
image: blackfire/blackfire:1.18.0
environment:
- BLACKFIRE_SERVER_ID=${BLACKFIRE_SERVER_ID}
- BLACKFIRE_SERVER_TOKEN=${BLACKFIRE_SERVER_TOKEN}
expose:
- "8707"
networks:
- internal
volumes:
humpback_database: {}
networks:
humpback_proxy:
external: true
internal:
external: false