# Example of Docker Compose setup using Traefik reverse proxy version: '3' services: # RTMP to WebRTC server ovenmediaengine: image: airensoft/ovenmediaengine:0.10.7 ports: # WebRTC ICE - 10000-10005:10000-10005/udp volumes: - ./ovenmediaengine/conf/Server-docker.xml:/opt/ovenmediaengine/bin/origin_conf/Server.xml:ro labels: - "traefik.enable=true" - "traefik.http.routers.ovenmediaengine.rule=Host(`stream.example.com`) && PathPrefix(`/app/`)" - "traefik.http.routers.ovenmediaengine.priority=101" - "traefik.http.services.ovenmediaengine.loadbalancer.server.port=3333" # RTMP server that authenticate stream against ghostream rtmp_server: image: nginx:1.19.2 volumes: - ./nginx/nginx-docker.conf:/etc/nginx/nginx.conf:ro labels: - "traefik.enable=true" - "traefik.tcp.routers.rtmp.rule=Host(`stream.example.com`)" - "traefik.tcp.services.rtmp.loadbalancer.server.port=1925" # Ghostream is the web frontend to OvenMediaEngine ghostream: build: ../ environment: - FLASK_CONFIG=production - LDAP_URI=ldap://127.0.0.1:389 - LDAP_USER_DN=cn=Users,dc=example,dc=com - SITE_NAME=Ghostream - SITE_HOSTNAME=localhost - FAVICON=/favicon.ico labels: - "traefik.enable=true" - "traefik.http.routers.ghostream.rule=Host(`stream.example.com`)" - "traefik.http.routers.ghostream.priority=100" - "traefik.http.services.ghostream.loadbalancer.server.port=8080"