forked from FlorentTorregrosa/docker-drupal-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.docker-compose.yml
85 lines (73 loc) · 2.02 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
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
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.ddp8.docker.localhost}
- VARNISH_TRAEFIK_FRONTEND_RULE_HOSTNAME=${VARNISH_TRAEFIK_FRONTEND_RULE_HOSTNAME:-varnish.ddp8.docker.localhost}
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:${DRUPAL_TRAEFIK_FRONTEND_RULE_HOSTNAME:-web.ddp8.docker.localhost}"
depends_on:
- mysql
- redis
- mail
varnish:
extends:
file: ./docker-compose-common.yml
service: varnish
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:${VARNISH_TRAEFIK_FRONTEND_RULE_HOSTNAME:-varnish.ddp8.docker.localhost}"
depends_on:
- web
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
solr:
extends:
file: ./docker-compose-common.yml
service: solr
redis:
extends:
file: ./docker-compose-common.yml
service: redis
mail:
extends:
file: ./docker-compose-common.yml
service: mail
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:${MAIL_TRAEFIK_FRONTEND_RULE_HOSTNAME:-mail.ddp8.docker.localhost}"
- "traefik.port=80"
# Matomo.
matomo:
image: matomo:3.5-fpm
matomo_web:
extends:
file: ./docker-compose-common.yml
service: matomo_nginx
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:${MATOMO_TRAEFIK_FRONTEND_RULE_HOSTNAME:-matomo.ddp8.docker.localhost}"
volumes_from:
- matomo
matomo_mysql:
extends:
file: ./docker-compose-common.yml
service: mysql
environment:
MYSQL_USER: matomo
MYSQL_PASSWORD: matomo
MYSQL_DATABASE: matomo
volumes:
- ./data/matomo_db:/var/lib/mysql