-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
58 lines (53 loc) · 1.13 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
version: "3.8"
services:
db:
image: postgres
ports:
- "5432:5432"
volumes:
- ./database:/var/lib/postgresql/data
env_file:
- ./dev.env
queue:
image: rabbitmq
volumes:
- ./queue:/queue
django:
build:
context: backend/
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- ./backend:/app
- static:/static
env_file:
- ./dev.env
depends_on:
- db
celery:
restart: always
build: ./backend
command: celery -A backend worker -l info
volumes:
- ./backend:/app
env_file:
- ./dev.env
depends_on:
- queue
- django
react:
build:
context: frontend/
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- static:/app/src/admin
env_file:
- ./dev.env
depends_on:
- django
volumes:
static: