-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
80 lines (77 loc) · 1.78 KB
/
docker-compose.dev.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
---
services:
app:
container_name: recovery_dev
build:
target: dev
image: recovery:dev
command: foreman start -f Procfile.dev
healthcheck:
test: curl --fail http://localhost:3000/health || exit 1
restart: on-failure
environment:
- ENVIRONMENT=
# psql client
- PGUSER=postgres
- PGPASSWORD=password
- PGHOST=db
- PGDATABASE=early_years_foundation_recovery_development
# app config
- DATABASE_URL=postgres://postgres:password@db:5432/early_years_foundation_recovery_development
- RAILS_ENV=development
- DOMAIN=localhost:3000
- RAILS_SERVE_STATIC_FILES=true
volumes:
- .:/srv
tty: true
stdin_open: true
worker:
container_name: recovery_worker
image: recovery:dev
command: que
environment:
- RAILS_ENV=development
- DATABASE_URL=postgres://postgres:password@db:5432/early_years_foundation_recovery_development
- DASHBOARD_UPDATE=false
# overrides
- SENTRY_TOKEN
- DASHBOARD_UPDATE_INTERVAL
- GOOGLE_CLOUD_BUCKET
depends_on:
- db
volumes:
- .:/srv
networks:
- recovery
tty: true
stdin_open: true
doc:
container_name: recovery_doc
image: recovery:dev
command: yard server
healthcheck:
test: curl --fail http://localhost:8808 || exit 1
volumes:
- .:/srv
ports:
- 8808:8808
networks:
- recovery
pa11y:
container_name: recovery_pa11y
build:
context: .
target: pa11y
image: recovery:pa11y
environment:
- DOMAIN=localhost:3000
- BOT_TOKEN
depends_on:
app:
condition: service_healthy
networks:
- recovery
volumes:
- ./tmp/pa11y:/tmp/pa11y
tty: true
stdin_open: true