-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
52 lines (49 loc) · 1.51 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
version: "3.9"
services:
nginx_base:
build:
context: .
dockerfile: Dockerfile.kaltura-media-openresty
allinonenginx:
extends:
service: nginx_base
volumes:
- "./all_in_one_nginx.conf.template:/usr/local/openresty/nginx/conf/nginx.conf.template"
- "./docker-entrypoint.sh:/scripts/docker-entrypoint.sh"
command: /bin/bash -c "/scripts/docker-entrypoint.sh"
environment:
- CONTROLLER_API_URL=http://controller:9191/control
ports:
- "9090:9090" # External HTTP Server (packager)
- "8001:8001" # Internal http server
- "1935:1935" # RTMP
- "7045:7045" # Haivision SRT
- "8002:8002" # mpeg-ts
- "8003:8003" # Segmenter (kmp input)
- "8004:8004" # Closed caption decoder (kmp input)
- "8005:8005" # RTMP output (kmp input)
depends_on:
- controller
controller:
build:
context: .
dockerfile: Dockerfile.controller
ports:
- "9191:9191"
environment:
- CONTROLLER_DEBUG="hell yes"
- CONTROLLER_PORT=9191
- CC_DECODER_URL=kmp://127.0.0.1:8004
- SEGMENTER_KMP_URL=kmp://127.0.0.1:8003
- SEGMENTER_API_URL=http://allinonenginx:8001/api/live
controllertest:
image: golang:1.19
working_dir: "/src"
volumes:
- "./:/src"
command: /bin/bash -c "go test ./..."
environment:
- CONTROLLER_PORT=9191
- CC_DECODER_URL=http://cc_decoder_url
- SEGMENTER_KMP_URL=http://segmenter_kmp_url
- SEGMENTER_API_URL=http://segmenter_api_url