-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
64 lines (64 loc) · 1.31 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3.7"
services:
queue:
image: bitnami/rabbitmq:3.9
db:
image: postgres:12
volumes:
- db-data:/var/lib/postgresql/data/pgdata
env_file:
- envs/production.env
backend:
depends_on:
- db
- queue
build:
context: ./backend
dockerfile: backend.dockerfile
volumes:
- data-location:/app/data
- static-files:/app/dist/static
healthcheck:
test: curl -f http://localhost:80/api/ping/ || exit 1
interval: 5s
timeout: 5s
start_period: 20s
retries: 10
env_file:
- envs/production.env
celery_worker:
depends_on:
backend:
condition: service_healthy
build:
context: ./backend
dockerfile: celery.dockerfile
volumes:
- data-location:/app/data
env_file:
- envs/production.env
frontend:
depends_on:
backend:
condition: service_healthy
build:
context: ./frontend
dockerfile: frontend.dockerfile
env_file:
- envs/production.env
proxy:
depends_on:
- frontend
image: nginx:1.21.1
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- static-files:/app/dist/static
ports:
- "8000:80"
volumes:
data-location:
driver: local
db-data:
driver: local
static-files:
driver: local