-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-debug.yml
100 lines (93 loc) · 1.93 KB
/
docker-compose-debug.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: "2"
volumes:
dbvolume:
ipython:
static_volume:
progress_volume:
secrets_volume:
torrent:
services:
db:
image: postgres:12.15
ports:
- 5543:5432
env_file:
- .env
volumes:
- dbvolume:/var/lib/postgresql/data/
web:
build:
context: .
dockerfile: ./backend/Dockerfile
restart: always
ports:
- 8000:8000
- 9091:9091
- 51413:51413
env_file:
- .env
environment:
- DEBUG=1
- DEPLOY_ENV=development
volumes:
- ./backend/:/usr/src/app/
- ./log/:/debug/
- ./Videos/:/usr/src/app/Videos
- progress_volume:/usr/progress/
- static_volume:/usr/static/
- /static/
- ipython:/root/.ipython
- torrent:/usr/torrent/:rw
command: bash -c "./start_django_server.sh"
depends_on:
- db
- redis
nginx:
build: ./nginx
volumes:
- ./backend/:/usr/src/app/
- ./Videos/:/usr/src/app/Videos
- static_volume:/usr/static/
- torrent:/usr/torrent/:rw
- secrets_volume:/secrets/
- ./log/:/debug/
ports:
- 1337:80
depends_on:
- web
frontend:
build: ./frontend
volumes:
- ./frontend/:/usr/src/app/
- /usr/src/app/node_modules
command: bash -c "npm start"
depends_on:
- web
env_file:
- .env
ports:
- 3000:3000
celery:
build:
context: .
dockerfile: ./backend/Dockerfile
command: bash -c "./start_celery_workers.sh"
volumes:
- ./backend/:/usr/src/app/
- ./Videos/:/usr/src/app/Videos
- static_volume:/usr/static/
- progress_volume:/usr/progress/
- torrent:/usr/torrent/:rw
- ./log/:/debug/
env_file:
- .env
environment:
- DEPLOY_ENV=development
depends_on:
- db
- redis
redis:
image: redis:alpine
command: redis-server --port 6380
ports:
- 6380:6380