generated from Alschn/django-react-docker-heroku-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (57 loc) · 1.14 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
services:
backend:
container_name: backend
build: ./backend
stdin_open: true
tty: true
volumes:
- ./backend:/app/backend
env_file:
- env/backend.env
links:
- redis_db
ports:
- "8000:8000"
frontend:
container_name: frontend
build: ./frontend
volumes:
- ./frontend:/app/frontend
- node-modules:/app/frontend/node_modules
env_file:
- env/frontend.env
ports:
- "3000:3000"
postgres_db:
container_name: postgres_db
image: postgres:14.0-alpine
env_file:
- env/postgres.env
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
redis_db:
container_name: redis_db
image: redis:alpine
env_file:
- env/redis.env
volumes:
- redis-data:/data
ports:
- "6379:6379"
django_q:
container_name: django_q
build: ./backend
env_file:
- env/backend.env
volumes:
- ./backend:/app/backend
depends_on:
- backend
- redis_db
entrypoint: ["sh", "-c", "python manage.py qcluster"]
volumes:
postgres-data:
redis-data:
node-modules: