-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
93 lines (88 loc) · 2.02 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
services:
##########################################
# govcms: The GovCMS local development
##########################################
govcms:
build:
context: .
dockerfile: .docker/Dockerfile.govcms
container_name: govcms
volumes:
# Source code volumes
- modules:/app/web/modules/develop
- themes:/app/web/themes/develop
- files:/app/web/sites/default/files
# Test volumes
- behat:/app/tests/behat
- cy:/app/tests/cy
- phpunit:/app/tests/phpunit
# Composer cache volume
- composer_cache:/home/govcms/.cache
# Configuration files
- ./.docker/config/rector.php:/app/rector.php
- ./.docker/sso/config:/app/custom/sso/config
environment:
- GOVCMS_ENV=development
- SIMPLESAMLPHP_CONFIG_DIR=/app/custom/sso/config
labels:
- "traefik.enable=true"
- "traefik.http.routers.govcms.rule=Host(`govcms.localhost`)"
- "traefik.http.routers.govcms-http.entrypoints=web"
- "traefik.http.services.govcms.loadbalancer.server.port=80"
networks:
- internal
ports:
- "8888:80"
develop:
watch:
- action: sync
path: .
target: /app/tests
ignore:
- vendor/
- node_modules/
- app/
- data/
- action: rebuild
path: composer.json
volumes:
modules:
driver: local
driver_opts:
type: none
o: bind
device: ./app/modules
themes:
driver: local
driver_opts:
type: none
o: bind
device: ./app/themes
files:
behat:
driver: local
driver_opts:
type: none
o: bind
device: ./behat
cy:
driver: local
driver_opts:
type: none
o: bind
device: ./cy
phpunit:
driver: local
driver_opts:
type: none
o: bind
device: ./phpunit
composer_cache:
driver: local
driver_opts:
type: none
o: bind
device: ./data/composer
networks:
internal:
external: false