-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
72 lines (69 loc) · 1.6 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
65
66
67
68
69
70
71
72
version: "3.5"
services:
rabbitmq:
image: rabbitmq:3.8-management
container_name: dvt-rabbitmq
hostname: rabbitmq
ports:
- "15672:15672"
expose:
- 5672
- 15672
environment:
- RABBITMQ_ERLANG_COOKIE=ASDFCASDFASDFSHFGH
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
- RABBITMQ_DEFAULT_VHOST=/
admin:
build:
context: .
dockerfile: deploy/dvt/Dockerfile
command: bash -c /app/start-django-dev.sh
container_name: dvt-admin
restart: unless-stopped
volumes:
- "database:/app/db/"
ports:
- "8000:8000"
expose:
- "8000"
depends_on:
- rabbitmq
environment:
- VIDEO_TRANSCODING_CELERY_BROKER_URL
- VIDEO_EDGES
- VIDEO_URL
- DJANGO_SUPERUSER_USERNAME=admin
- DJANGO_SUPERUSER_PASSWORD=admin
- DJANGO_SUPERUSER_EMAIL=admin@dvt.localhost
celery:
build:
context: .
dockerfile: deploy/dvt/Dockerfile
command: bash -c /app/start-celery-worker.sh
container_name: dvt-celery
restart: unless-stopped
volumes:
- "database:/app/db/"
depends_on:
- rabbitmq
links:
- "storage:storage.localhost"
environment:
- DJANGO_SETTINGS_MODULE=dvt.settings
- VIDEO_ORIGINS
- VIDEO_TRANSCODING_CELERY_BROKER_URL
stop_signal: SIGTERM
storage:
build:
context: .
dockerfile: deploy/storage/Dockerfile
hostname: storage.localhost
command: sh -c /app/start-nginx.sh
ports:
- "8080:8080"
volumes:
- "videos:/opt/static/videos"
volumes:
database:
videos: