-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
101 lines (94 loc) · 2.44 KB
/
docker-compose.yml
File metadata and controls
101 lines (94 loc) · 2.44 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
services:
civicrm:
image: civicrm/civicrm
build:
context: .
container_name: app
volumes:
- ./web/public:/var/www/html/public
- ./web/private:/var/www/html/private
- ./ext:/var/www/html/ext
environment:
TZ: Europe/Berlin
VIRTUAL_HOST: civicrm
CIVICRM_DB_HOST: civicrm-db
CIVICRM_DB_NAME: civicrm
CIVICRM_DB_PORT: 3306
CIVICRM_DB_USER: civicrm
CIVICRM_DB_PASSWORD: civicrm-d3vPass!
ports:
- "8760:80"
- "5173:5173"
networks:
- backend
- fleet
- frontend
depends_on:
- civicrm-db
command:
bash -c "apt-get update && apt-get install -y nodejs npm && apache2-foreground"
civicrm-db:
image: mariadb
container_name: db
restart: unless-stopped
volumes:
- dbdata:/var/lib/mysql
environment:
TZ: Europe/Berlin
MARIADB_USER: civicrm
MARIADB_DATABASE: civicrm
MARIADB_PASSWORD: civicrm-d3vPass!
MARIADB_ROOT_PASSWORD: ...
MARIADB_ROOT_HOST: '%'
command: [
"--skip-networking=0",
"--skip-grant-tables"
]
networks:
- backend
coverage-run:
build:
context: .
dockerfile: Dockerfile.coverage
container_name: coverage-runner
depends_on:
- civicrm
volumes:
- ./ext:/var/www/html/ext
- ./web/public:/var/www/html/public
- ./web/private:/var/www/html/private
working_dir: /var/www/html/ext/systopia_challenge
command: >
bash -lc "set -euo pipefail &&
cd /var/www/html/ext/systopia_challenge &&
rm -rf coverage &&
mkdir -p coverage/html &&
php -d xdebug.mode=coverage \
vendor/bin/phpunit -v \
--coverage-text \
--coverage-html /var/www/html/ext/systopia_challenge/coverage/html \
--coverage-clover /var/www/html/ext/systopia_challenge/coverage/clover.xml &&
ls -la coverage/html | head"
networks:
- backend
- fleet
- frontend
coverage-web:
image: nginx:alpine
container_name: coverage-web
restart: unless-stopped
environment:
VIRTUAL_HOST: code-coverage
volumes:
- ./ext/systopia_challenge/coverage/html:/usr/share/nginx/html:ro
networks:
- frontend
networks:
backend:
external: true
fleet:
external: true
frontend:
external: true
volumes:
dbdata: { }