-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose-prod.yml
79 lines (74 loc) · 1.62 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: "2"
volumes:
dbvolume:
ipython:
static_volume:
torrent:
progress_volume:
secrets_volume:
services:
db:
image: postgres:12.15
env_file:
- .env
ports:
- 5543:5432
volumes:
- dbvolume:/var/lib/postgresql/data/
web:
image: webmultimedia/http-streaming-server:master
build:
context: .
dockerfile: ./backend/Dockerfile.prod
restart: always
ports:
- 51413:51413
env_file:
- .env
environment:
- DEPLOY_ENV=production
volumes:
- ./Videos/:/usr/src/app/Videos
- static_volume:/usr/static/
- progress_volume:/usr/progress/
- ipython:/root/.ipython
- torrent:/usr/torrent/:rw
- ./log/:/debug/
command: bash -c "./start_django_server.sh"
depends_on:
- db
- redis
nginx:
build: ./nginx
volumes:
- ./Videos/:/usr/src/app/Videos
- static_volume:/usr/static/
- torrent:/usr/torrent/:rw
- secrets_volume:/secrets/
- ./log/:/debug/
ports:
- 1337:80
depends_on:
- web
celery:
build:
context: .
dockerfile: ./backend/Dockerfile.prod
image: webmultimedia/http-streaming-server:master
command: bash -c "./start_celery_workers.sh"
volumes:
- ./Videos/:/usr/src/app/Videos
- torrent:/usr/torrent/:rw
- progress_volume:/usr/progress/
- static_volume:/usr/static/
- ./log/:/debug/
env_file:
- .env
environment:
- DEPLOY_ENV=production
depends_on:
- db
- redis
redis:
image: redis:alpine
command: redis-server --port 6380