-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
43 lines (41 loc) · 953 Bytes
/
compose.yml
File metadata and controls
43 lines (41 loc) · 953 Bytes
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
services:
db:
image: mariadb:11
environment:
- MYSQL_ROOT_PASSWORD=root
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
php:
build:
dockerfile: ./containerfile
context: ./
links:
- db
depends_on:
db:
condition: service_healthy
ports:
- 8888:80
healthcheck:
test: ["CMD-SHELL", "curl -I http://localhost | grep 'X-Generator: Backdrop CMS' || exit 1"]
interval: 5s
timeout: 2s
retries: 10
volumes:
- ./:/workspace
post_start:
- command: install-app
backstop:
image: backstopjs/backstopjs
command: --config=/config.js remote
links:
- php:app
depends_on:
php:
condition: service_healthy
volumes:
- .ops/output/vrt:/output
- .ops/backstop.js:/config.js
- .ops/vrt-scripts:/scripts
- .ops/urls.txt:/urls.txt