forked from govcms-tests/tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
115 lines (109 loc) · 2.58 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
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
- /var/www/html
# 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
environment:
- GOVCMS_ENV=development
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
- govcms-local-services_web
- govcms-local-services_internal
develop:
watch:
- action: sync
path: .
target: /app/tests
ignore:
- vendor/
- node_modules/
- app/
- data/
- action: rebuild
path: composer.json
##########################################
# cypress: Cypress testing service
##########################################
cypress:
image: cypress/included
container_name: cypress
volumes:
- ./cy:/e2e
- /tmp/.X11-unix:/tmp/.X11-unix
networks:
- internal
environment:
- CYPRESS_baseUrl=http://govcms
entrypoint: ["npx", "cypress", "run", "--project", "/e2e", "--spec", "/e2e/cypress/e2e/4-ui/*.cy.js"]
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
drupal_sites:
driver: local
driver_opts:
type: none
o: bind
device: ./data/drupal_sites
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
govcms-local-services_web:
external: true
govcms-local-services_internal:
external: true