-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-live-watermarking-setup-4.yml
150 lines (143 loc) · 4.75 KB
/
docker-compose-live-watermarking-setup-4.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
version: "2.1"
services:
live-ffmpeg-a:
build: ./docker/ffmpeg/docker/ffmpeg
container_name: live-ffmpeg-a
networks:
- origin-shield-cache
environment:
- PUB_POINT_URI=http://live-origin-a/ingress-a/ingress.isml
- 'TRACKS=${ENCODER_TRACKS}'
depends_on:
live-origin-a:
condition: service_healthy
live-origin-a:
container_name: live-origin-a
# Build internal image of Ubuntu and configure entrypoint.sh to create
# a publishing point when the container starts.
build: ./docker/unified-origin/docker/origin-ubuntu
ports:
- 8081:80
networks:
- origin-shield-cache
volumes:
- ./conf/live-origin-lua-header-resp-a.conf.in:/etc/apache2/sites-enabled/unified-origin.conf
- ./conf/remote-storage-origin-lua-response-header.conf.in:/etc/apache2/sites-enabled/remote-storage-origin-lua-response-header.conf.in
- ./conf/remote-storage-origin-lua.conf.in:/etc/apache2/sites-enabled/remote-storage-origin-lua.conf.in
- ./conf/lua:/var/www/unified-origin/lua
environment:
- REST_API_PORT=8081
- LOG_LEVEL=warn
- UspLicenseKey=$USP_LICENSE_KEY
- channel_virtual_path=ingress-a
- channel=ingress
- channel_options=${LIVE_CHANNEL_OPTIONS}
healthcheck:
test: kill -0 1
interval: 2s
timeout: 5s
retries: 30
live-ffmpeg-b:
build: ./docker/ffmpeg/docker/ffmpeg
container_name: live-ffmpeg-b
networks:
- origin-shield-cache
environment:
- PUB_POINT_URI=http://live-origin-b/ingress-b/ingress.isml
- 'TRACKS=${ENCODER_TRACKS}'
depends_on:
live-origin-b:
condition: service_healthy
live-origin-b:
container_name: live-origin-b
# Build internal image of Ubuntu and configure entrypoint.sh to create
# a publishing point when the container starts.
build: ./docker/unified-origin/docker/origin-ubuntu
ports:
- 8082:80
networks:
- origin-shield-cache
volumes:
- ./conf/live-origin-lua-hedaer-resp-b.conf.in:/etc/apache2/sites-enabled/unified-origin.conf
- ./conf/remote-storage-origin-lua-response-header.conf.in:/etc/apache2/sites-enabled/remote-storage-origin-lua-response-header.conf.in
- ./conf/remote-storage-origin-lua.conf.in:/etc/apache2/sites-enabled/remote-storage-origin-lua.conf.in
- ./conf/lua:/var/www/unified-origin/lua
environment:
- REST_API_PORT=8081
- LOG_LEVEL=warn
- UspLicenseKey=$USP_LICENSE_KEY
- channel_virtual_path=ingress-b
- channel=ingress
- channel_options=${LIVE_CHANNEL_OPTIONS}
healthcheck:
test: kill -0 1
interval: 2s
timeout: 5s
retries: 30
varnish-cache-proxy:
## Varnish Enterprise
image: unifiedstreaming/varnish-cache-plus:latest
# image: origin-shield-cache_varnish-cache-six-plus:latest
# image: quay.io/varnish-software/varnish-plus:latest
container_name: varnish-cache-proxy
expose:
- "80"
- "443"
ports:
- "80:80"
- "443:443"
networks:
- origin-shield-cache
depends_on:
- live-ffmpeg-a
- live-ffmpeg-b
volumes:
- ./conf/accounting_metrics.vcl:/etc/varnish/accounting_metrics.vcl
- ./conf/watermarking_live_setup_4.vcl:/etc/varnish/default.vcl.in
# - ./conf/watermarking_live_setup_4.vcl:/etc/varnish/watermarking_live_setup_4.vcl
- ./certbot/dynamic/demo.robertoramos.me:/etc/letsencrypt/live/demo.robertoramos.me
- ./conf/tls.conf:/etc/varnish/tls.conf
- varnish1vsm:/var/lib/varnish/:rw
environment:
TARGET_HOST: "127.0.0.1"
TARGET_PORT: "8081"
MSE_MEMORY_TARGET: 10G
VARNISH_EXTRA: -n varnish
VARNISH_VCL_CONF: /etc/varnish/default.vcl
VARNISH_LISTEN_PORT: 80
VARNISHLOG: "false" #varnishlog and varnishncsa are mutually exclusive
VARNISHNCSA: "false"
VARNISH_TLS_CFG: "/etc/varnish/tls.conf"
# VARNISH_DEBUG: "true"
# LOG_FORMAT_DEBUG: "Begin,ReqURL,VCL_Log,Hash"
healthcheck:
test: kill -0 1
interval: 2s
timeout: 5s
retries: 30
varnishncsa:
image: unifiedstreaming/varnish-cache-plus:latest
container_name: varnishncsa
volumes:
- varnish1vsm:/var/lib/varnish/:ro
environment:
- VARNISH_EXTRA=-n varnish
- TARGET_HOST=127.0.0.1 # fake target
- TARGET_PORT=8081 # fake port
- VARNISH_NAME=varnish
- VARNISHNCSA=false
- VARNISHLOG=false
# - LOG_FORMAT_DEBUG=Begin,ReqURL,VCL_Log,Hash
networks:
- origin-shield-cache
entrypoint: "/usr/bin/varnishncsa -F '${LOG_FORMAT_VARNISH}' -n varnish"
depends_on:
- varnish-cache-proxy
volumes:
varnish1vsm:
driver_opts:
type: tmpfs
device: tmpfs
networks:
origin-shield-cache:
driver: bridge