-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
36 lines (35 loc) · 953 Bytes
/
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
version: "3"
services:
db:
image: postgres:9.4.18-alpine
environment:
- POSTGRES_PASSWORD=super-secret
- POSTGRES_DB=monitor_api
privileged: true
ports:
- "15432:5432"
web:
build: .
volumes:
- ./:/app
ports:
- "4567:4567"
links:
- db
- notify_simulator
command: "bundle exec rerun --background 'ash bin/serve.sh'"
privileged: true
environment:
DATABASE_URL: 'postgres://postgres:super-secret@db/monitor_api'
PROJECT_FILE_PATH: 'projects.json'
GOV_NOTIFY_API_URL: 'http://notify_simulator'
EMAIL_WHITELIST: '[email protected]'
GOV_NOTIFY_API_KEY: 'cafe-cafecafe-cafe-cafe-cafe-cafecafecafe-cafecafe-cafe-cafe-cafe-cafecafecafe'
notify_simulator:
build: .
volumes:
- ./:/app
ports:
- "7654:4567"
privileged: true
command: "bundle exec rerun --background -- ruby ./simulators/notify.rb -o 0.0.0.0 -p 80"