streaming-docker/docker-compose.yml

106 lines
2.0 KiB
YAML

version: "3.5"
services:
snowmix:
build: .
restart: unless-stopped
volumes:
#- /home/informatic/Projects/snowmix-tools-streamboxback/snowconfig:/config
- sockets:/run/snowmix
- ./config:/config:ro
- ./assets:/assets:ro
ports:
- 9999:9999
ipc: host
janus:
image: mcroth/docker-janus
restart: unless-stopped
volumes:
- ./config/janus/:/opt/janus/etc/janus/
ports:
- 8088:8088
- 8188:8188
- 8004:8004
- 8004:8004/udp
- 8005:8005/udp
network_mode: host
janus-feed:
build: .
restart: unless-stopped
volumes:
- sockets:/run/snowmix
- ./tools:/tools:ro
environment:
- SNOWMIX_YOUTUBE_SECRET
ports:
- 20001:20001
command: /tools/output2cdn-base
ipc: host
# FIXME workaround for janus staying in host network ;_;
extra_hosts:
- "janus:172.17.0.1"
frontend:
build: frontend
restart: unless-stopped
ports:
- 80:80
extra_hosts:
- "janus:172.17.0.1"
api:
build: api
restart: unless-stopped
ports:
- 5000:5000
volumes:
- ./api:/app
# FIXME this should be done in de-ip-hdmi...
multicast:
build: .
restart: unless-stopped
command: /tools/multicastjoin
network_mode: host
lenkeng1:
build: .
restart: unless-stopped
volumes:
- sockets:/run/snowmix
command: /tools/lenkeng2feed 1:10.8.1.34 -interface ens3
network_mode: host
ipc: host
lenkeng1-audio:
build: .
restart: unless-stopped
volumes:
- sockets:/run/snowmix
command: /tools/lenkengaudio2feed 1:10.8.1.34 -interface ens3
network_mode: host
ipc: host
lenkeng2:
build: .
restart: unless-stopped
volumes:
- sockets:/run/snowmix
command: /tools/lenkeng2feed 2:10.8.1.35 -interface ens3
network_mode: host
ipc: host
lenkeng2-audio:
build: .
restart: unless-stopped
volumes:
- sockets:/run/snowmix
command: /tools/lenkengaudio2feed 2:10.8.1.35 -interface ens3
network_mode: host
ipc: host
volumes:
sockets: