2020-09-20 01:09:42 +02:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
# endpoint for speakers, core
|
|
|
|
endpoint:
|
|
|
|
image: nginx-rtmp:alpine3.12
|
|
|
|
restart: always
|
2020-09-20 23:22:29 +02:00
|
|
|
networks:
|
|
|
|
static:
|
|
|
|
ipv4_address: 172.23.42.2
|
|
|
|
ports:
|
|
|
|
- 127.0.0.1:1935:1935
|
2020-09-20 01:09:42 +02:00
|
|
|
volumes:
|
2020-09-20 23:22:29 +02:00
|
|
|
- /srv/streaming/core/streams:/etc/nginx/streams.d:ro
|
2020-09-20 01:09:42 +02:00
|
|
|
|
|
|
|
# stream relay, edge
|
|
|
|
relay:
|
|
|
|
image: nginx-rtmp:alpine3.12
|
|
|
|
restart: always
|
2020-09-20 23:22:29 +02:00
|
|
|
networks:
|
|
|
|
static:
|
|
|
|
ipv4_address: 172.23.42.3
|
|
|
|
default:
|
2020-09-20 01:09:42 +02:00
|
|
|
volumes:
|
2020-09-20 23:22:29 +02:00
|
|
|
- /srv/streaming/edge/streams:/etc/nginx/streams.d:ro
|
|
|
|
- /srv/streaming/edge/conf:/etc/nginx/conf.d:ro
|
2020-09-20 01:09:42 +02:00
|
|
|
|
|
|
|
# Playout website
|
|
|
|
playout:
|
|
|
|
image: stream-playout:stable-alpine
|
|
|
|
restart: always
|
2020-09-20 23:22:29 +02:00
|
|
|
|
|
|
|
# NGINX proxy
|
|
|
|
proxy:
|
|
|
|
image: nginx:stable-alpine
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 127.0.0.1:8042:80
|
|
|
|
volumes:
|
|
|
|
- /srv/streaming/proxy.conf:/etc/nginx/conf.d/default.conf:ro
|
|
|
|
|
|
|
|
networks:
|
|
|
|
static:
|
|
|
|
driver: bridge
|
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
|
|
|
- subnet: 172.23.42.0/24
|