-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.production.yml
61 lines (59 loc) · 1.19 KB
/
docker-compose.production.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
version: '3'
volumes:
assets:
services:
nginx:
image: mcabrams/soundproud_nginx:0.0.1
ports:
- "80:8001"
volumes:
- assets:/static
depends_on:
- web
deploy:
replicas: 1
restart_policy:
condition: on-failure
healthcheck:
test: ["CMD", "wget", "-qO-", "web:8000"]
interval: 10s
timeout: 3s
retries: 20
web:
image: mcabrams/soundproud_web:0.0.1
command: ["./start.sh", "web-production"]
env_file:
- web.production.env
ports:
- "8000"
environment:
PROD: 1
deploy:
replicas: 1
restart_policy:
condition: on-failure
broker:
image: rabbitmq:3.6.11
deploy:
replicas: 1
restart_policy:
condition: on-failure
worker:
image: mcabrams/soundproud_web:0.0.1
command: celery -A soundproud worker --loglevel=info
depends_on:
- broker
env_file:
- web.production.env
deploy:
replicas: 1
restart_policy:
condition: on-failure
assets:
image: mcabrams/soundproud_assets:0.0.1
volumes:
- assets:/dist
deploy:
replicas: 1
restart_policy:
condition: on-failure