version: '3.8' services: # endpoint for speakers, core endpoint: image: nginx-rtmp:alpine3.12 restart: always networks: static: ipv4_address: 172.23.42.2 ports: - 127.0.0.1:1935:1935 volumes: - /srv/streaming/core/streams:/etc/nginx/streams.d:ro # stream relay, edge relay: image: nginx-rtmp:alpine3.12 restart: always networks: static: ipv4_address: 172.23.42.3 default: volumes: - /srv/streaming/edge/streams:/etc/nginx/streams.d:ro - /srv/streaming/edge/conf:/etc/nginx/conf.d:ro # Playout website playout: image: stream-playout:stable-alpine restart: always # 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