-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
156 lines (142 loc) · 3.59 KB
/
docker-compose.yml
File metadata and controls
156 lines (142 loc) · 3.59 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
version: "3"
services:
mariadb:
image: mariadb:10.3
ports:
- '3306'
volumes:
- .docker/dumps:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: db
MYSQL_PASSWORD: db
MYSQL_DATABASE: db
phpfpm:
image: itkdev/php7.2-fpm:latest
restart: always
environment:
- PHP_XDEBUG=${PHP_XDEBUG:-0}
- PHP_XDEBUG_REMOTE_AUTOSTART=${PHP_XDEBUG_REMOTE_AUTOSTART:-0}
- PHP_XDEBUG_REMOTE_HOST=${PHP_XDEBUG_REMOTE_HOST:-0.0.0.0}
- PHP_XDEBUG_REMOTE_CONNECT_BACK=${PHP_XDEBUG_REMOTE_CONNECT_BACK:-0}
- PHP_MAIL=1 # Uncomment to enable mailhog
depends_on:
- mariadb
volumes:
- .:/app:delegated
nginx:
image: nginx:latest
depends_on:
- phpfpm
- memcached
# ports:
# - '80'
volumes:
- ${PWD}/.docker/vhost.conf:/etc/nginx/conf.d/default.conf:ro
- ./:/app:delegated
labels:
- "traefik.frontend.rule=Host:${COMPOSE_PROJECT_NAME}.docker.localhost"
nginx_administrativtloop:
image: nginx:latest
depends_on:
- phpfpm
- memcached
# ports:
# - '80'
volumes:
- ${PWD}/.docker/vhost.conf:/etc/nginx/conf.d/default.conf:ro
- ./:/app:delegated
labels:
- "traefik.frontend.rule=Host:administrativtloop.docker.localhost"
nginx_akutteamloop:
image: nginx:latest
depends_on:
- phpfpm
- memcached
# ports:
# - '80'
volumes:
- ${PWD}/.docker/vhost.conf:/etc/nginx/conf.d/default.conf:ro
- ./:/app:delegated
labels:
- "traefik.frontend.rule=Host:akutteamloop.docker.localhost"
nginx_elearningloop:
image: nginx:latest
depends_on:
- phpfpm
- memcached
# ports:
# - '80'
volumes:
- ${PWD}/.docker/vhost.conf:/etc/nginx/conf.d/default.conf:ro
- ./:/app:delegated
labels:
- "traefik.frontend.rule=Host:elearningloop.docker.localhost"
nginx_emnemodulloop:
image: nginx:latest
depends_on:
- phpfpm
- memcached
# ports:
# - '80'
volumes:
- ${PWD}/.docker/vhost.conf:/etc/nginx/conf.d/default.conf:ro
- ./:/app:delegated
labels:
- "traefik.frontend.rule=Host:emnemodulloop.docker.localhost"
nginx_msoloop:
image: nginx:latest
depends_on:
- phpfpm
- memcached
# ports:
# - '80'
volumes:
- ${PWD}/.docker/vhost.conf:/etc/nginx/conf.d/default.conf:ro
- ./:/app:delegated
labels:
- "traefik.frontend.rule=Host:msoloop.docker.localhost"
nginx_risikataloop:
image: nginx:latest
depends_on:
- phpfpm
- memcached
# ports:
# - '80'
volumes:
- ${PWD}/.docker/vhost.conf:/etc/nginx/conf.d/default.conf:ro
- ./:/app:delegated
labels:
- "traefik.frontend.rule=Host:risikataloop.docker.localhost"
memcached:
image: 'memcached:latest'
ports:
- '11211'
environment:
- MEMCACHED_CACHE_SIZE=64
mailhog:
image: mailhog/mailhog
restart: always
ports:
- "1025"
- "8025"
drush:
image: itkdev/drush6:latest
depends_on:
- mariadb
entrypoint:
- drush
volumes:
- drush-cache:/root/.drush
- ./:/app
reverse-proxy:
image: traefik # The official Traefik docker image
command: --api --docker # Enables the web UI and tells Traefik to listen to docker
ports:
- "80"
- "8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
# Drush cache volume to persist cache between runs.
volumes:
drush-cache: