forked from opt-out-tools/public_api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 890 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
37
38
39
40
41
42
43
44
45
46
47
version: '3'
services:
db:
image: postgres:11.5-alpine
environment:
- "POSTGRES_PASSWORD=${PASSWORD}"
- "POSTGRES_USER=${DB_USER}"
- "POSTGRES_DB=${DB_NAME}"
volumes:
- db-data:/var/lib/postgresql/data
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
api:
image: softerrific/opt_out_api:0.1.9
env_file:
- .env
ports:
- "8001:8000"
depends_on:
- db
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
website:
image: softerrific/opt_out_website:0.1.0
ports:
- "8002:80"
depends_on:
- api
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
volumes:
db-data: