-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
88 lines (78 loc) · 2.23 KB
/
docker-compose.yaml
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
version: "3"
services:
# Origin + Remix stack
origin:
image: docker.io/unifiedstreaming/npvr-origin:1.13.0
ports:
- 80:80
environment:
- UspLicenseKey
- S3_URL=http://minio
- S3_REGION=default
- S3_ACCESS_KEY=minioadmin
- S3_SECRET_KEY=minioadmin
- ISM_URL=http://ism-proxy/ism/
remix-proxy:
image: docker.io/unifiedstreaming/nginx-cache:latest
environment:
- NAME=remix-proxy
- TARGET=remix
ism-proxy:
image: docker.io/unifiedstreaming/nginx-cache:latest
environment:
- NAME=ism-proxy
- TARGET=api
remix:
image: docker.io/unifiedstreaming/remix-origin:1.13.0
environment:
- UspLicenseKey
- SMIL_URL=http://api/smil/
- S3_URL=http://minio
- S3_REGION=default
- S3_ACCESS_KEY=minioadmin
- S3_SECRET_KEY=minioadmin
# nPVR archiver
api:
image: docker.io/unifiedstreaming/npvr-archiver:1.13.0
environment:
- UspLicenseKey
- REMIX_URL=http://remix-proxy
- CELERY_RESULT_BACKEND=redis://redis
- CELERY_BROKER_URL=pyamqp://guest@rabbitmq
command: ["gunicorn", "-b", "0.0.0.0:80", "--log-level", "info", "--access-logfile", "-", "-w", "8", "archiver:app"]
worker:
image: docker.io/unifiedstreaming/npvr-archiver:1.13.0
environment:
- UspLicenseKey
- CELERY_RESULT_BACKEND=redis://redis
- CELERY_BROKER_URL=pyamqp://guest@rabbitmq
command: ["celery", "-A", "archiver.celery", "worker", "-l", "info"]
beat:
image: docker.io/unifiedstreaming/npvr-archiver:1.13.0
environment:
- UspLicenseKey
- CELERY_RESULT_BACKEND=redis://redis
- CELERY_BROKER_URL=pyamqp://guest@rabbitmq
command: ["celery", "-A", "archiver.celery", "beat", "-l", "info"]
# core infrastructure bits
redis:
image: redis:4
ports:
- 6379:6379
rabbitmq:
image: rabbitmq:management
ports:
- 15672:15672
- 5672:5672
flower:
image: mher/flower
command: ["celery", "--broker=amqp://guest:guest@rabbitmq:5672//", "flower"]
ports:
- 5555:5555
# minio storage server
minio:
image: minio/minio
ports:
- 9000:9000
- 9001:9001
command: ["server", "/data", "--console-address", ":9001"]