-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
107 lines (99 loc) · 3.43 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: '3'
services:
smil-proxy:
image: unifiedremix/caching-proxy:1.7.32
environment:
- NAME=smil-proxy
- TARGET=smil-origin
- CACHE_MAX_FILESIZE=16384
- LOG_LEVEL=warn
- LOG_FORMAT=%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" \"%{cache-status}e\" \"%{REMIX_REQUEST_ID}i\" %D
labels:
- "traefik.enable=true"
- "traefik.http.routers.smil-proxy.entrypoints=web"
- "traefik.http.routers.smil-proxy.rule=PathPrefix(`/smil-proxy/`)"
networks:
- remix
remix-proxy:
image: unifiedremix/caching-proxy:1.7.32
environment:
- NAME=remix-proxy
- TARGET=remix-origin
- CACHE_MAX_FILESIZE=104857600
- LOG_LEVEL=warn
- LOG_FORMAT=%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" \"%{cache-status}e\" \"%{REMIX_REQUEST_ID}i\" %D
labels:
- "traefik.enable=true"
- "traefik.http.routers.remix-proxy.entrypoints=web"
- "traefik.http.routers.remix-proxy.rule=PathPrefix(`/remix-proxy/`)"
networks:
- remix
smil-origin:
image: unifiedstreaming/smil-origin:1.10.12
environment:
- LOG_FORMAT=%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" \"%{cache-status}e\" \"%{REMIX_REQUEST_ID}i\" %D
labels:
- "traefik.enable=true"
- "traefik.http.routers.smil-origin.entrypoints=web"
- "traefik.http.routers.smil-origin.rule=PathPrefix(`/smil-origin/`)"
networks:
- remix
remix-origin:
image: unifiedstreaming/remix-origin:latest
environment:
- USP_LICENSE_KEY
- LOG_LEVEL=debug
- LOG_FORMAT=%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" \"%{cache-status}e\" \"%{REMIX_REQUEST_ID}i\" %D
labels:
- "traefik.enable=true"
- "traefik.http.routers.remix-origin.entrypoints=web"
- "traefik.http.routers.remix-origin.rule=PathPrefix(`/remix-origin/`)"
networks:
- remix
unified-origin:
image: unifiedstreaming/origin:latest
environment:
- USP_LICENSE_KEY
- LOG_LEVEL=debug
- LOG_FORMAT=%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" \"%{cache-status}e\" \"%{REMIX_REQUEST_ID}i\" %D
- REMOTE_STORAGE_URL=http://remix-proxy/
labels:
- "traefik.enable=true"
- "traefik.http.routers.origin.entrypoints=web"
- "traefik.http.routers.origin.rule=PathPrefix(`/unified-origin/`)"
- "traefik.http.routers.origin.middlewares=origin-stripprefix"
- "traefik.http.middlewares.origin-stripprefix.stripprefix.prefixes=/unified-origin"
networks:
- remix
web-frontend:
image: unifiedstreaming/web-frontend:1.7.32
labels:
- "traefik.enable=true"
- "traefik.http.routers.web-frontend.entrypoints=web"
- "traefik.http.routers.web-frontend.rule=PathPrefix(`/`)"
networks:
- remix
sample-content:
image: unifiedstreaming/sample-content:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.sample-content.entrypoints=web"
- "traefik.http.routers.sample-content.rule=PathPrefix(`/sample-content/`)"
networks:
- remix
load-balance:
image: traefik:v2.7
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
command:
- "--accesslog=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- 80:80
networks:
- remix
networks:
remix:
driver: bridge