21 lines
607 B
YAML
21 lines
607 B
YAML
services:
|
|
nginx-rtmp:
|
|
image: tiangolo/nginx-rtmp
|
|
restart: unless-stopped
|
|
container_name: nginx-rtmp
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
# - ./stream-auth:/var/www/html/stream-auth:ro
|
|
- /var/www/html/stream:/var/www/html/stream
|
|
networks:
|
|
- traefik-public
|
|
labels:
|
|
traefik.enable: true
|
|
traefik.tcp.routers.rtmps.entrypoints: rtmps
|
|
traefik.tcp.routers.rtmps.tls: true
|
|
traefik.tcp.routers.rtmps.rule: HostSNI(`*`)
|
|
traefik.tcp.services.rtmps.loadbalancer.server.port: 1935
|
|
networks:
|
|
traefik-public:
|
|
external: true
|