-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
43 lines (42 loc) · 967 Bytes
/
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
services:
rtmp:
image: alfg/nginx-rtmp
ports:
- "1935:1935"
- "8080:80"
volumes:
- ./rtmp/live.conf:/etc/nginx/nginx.conf.template
- video_files:/opt/data/hls
api:
build: stream-handler
ports:
- "9090:9090"
volumes:
- ./stream-handler:/stream-handler
environment:
- REDIS_ADDR=redis:6379
- REDIS_PASSWORD=
command: go run /stream-handler/main.go api
discovery:
build: stream-handler
volumes:
- ./stream-handler:/stream-handler
- video_files:/hls
command: go run /stream-handler/main.go discovery
environment:
- HLS_PATH=/hls
- IP=rtmp
- DISCOVERY_API_URL=http://api:9090
redis:
image: redis:7.0.12-alpine
ports:
- "6379:6379"
edge:
build: edge
ports:
- "8081:8081"
volumes:
- ./edge/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf
- ./edge/router:/router/
volumes:
video_files: