-
Notifications
You must be signed in to change notification settings - Fork 8
/
example.docker-compose.yml
46 lines (40 loc) · 1.15 KB
/
example.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
version: "2.3"
services:
web:
extends:
file: ./docker-compose-common.yml
service: drupal-php-apache-dev
environment:
- DRUPAL_TRAEFIK_FRONTEND_RULE_HOSTNAME=${DRUPAL_TRAEFIK_FRONTEND_RULE_HOSTNAME:-web.drupalfr8.docker.localhost}
- VARNISH_TRAEFIK_FRONTEND_RULE_HOSTNAME=${VARNISH_TRAEFIK_FRONTEND_RULE_HOSTNAME:-varnish.drupalfr8.docker.localhost}
ports:
- 8101:80
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:${DRUPAL_TRAEFIK_FRONTEND_RULE_HOSTNAME:-web.drupalfr8.docker.localhost}"
depends_on:
- mysql
- redis
- mail
mysql:
extends:
file: ./docker-compose-common.yml
service: mysql
environment:
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
MYSQL_DATABASE: drupal
volumes:
- ./data/db:/var/lib/mysql
redis:
extends:
file: ./docker-compose-common.yml
service: redis
mail:
image: djfarrelly/maildev
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:${MAIL_TRAEFIK_FRONTEND_RULE_HOSTNAME:-mail.drupalfr8.docker.localhost}"
- "traefik.port=80"
ports:
- 8105:80