-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod.yml
61 lines (60 loc) · 1.41 KB
/
docker-compose-prod.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'
services:
backend: &backend
user: "container_user:container_user"
image: hci/backend:latest
command: rungunicorn
container_name: backend
tty: true
stdin_open: true
depends_on:
- rabbitmq
- celery_worker
expose:
- "8000"
volumes:
- ./src/backend:/opt/backend
env_file:
- .env
rabbitmq:
image: rabbitmq:3.8.2-alpine
container_name: rabbitmq
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 5s
timeout: 15s
retries: 1
celery_worker:
<<: *backend
container_name: celery_worker
command: celery -A project worker --loglevel=info --sentry=${SENTRY_DSN}
ports: []
tty: false
stdin_open: false
depends_on:
- rabbitmq
celery_beat:
<<: *backendrestart
container_name: celery_beat
command: celery -A project worker --loglevel=info --sentry=${SENTRY_DSN}
ports: []
tty: false
stdin_open: false
depends_on:
- rabbitmq
nginx:
image: hci/frontend:latest
restart: always
container_name: proxy_server
ports:
- 80:80
- "443:443"
volumes:
- ./conf/nginx-proxy-prod.conf:/etc/nginx/conf.d/default.conf:ro
- ./src/backend:/opt/backend
- ./ssl/concatenated.cer:/etc/ssl/concatenated.cer
- ./ssl/private_key.key:/etc/ssl/private_key.key
depends_on:
- backend
volumes:
pgdata: