fix: nginx-rtmp needs CHOWN cap + depends_on archive-worker for DNS
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9416ddfb23
commit
35bc2b369b
|
|
@ -43,6 +43,10 @@ services:
|
||||||
- ALL
|
- ALL
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_BIND_SERVICE
|
- NET_BIND_SERVICE
|
||||||
|
- CHOWN
|
||||||
|
- DAC_OVERRIDE
|
||||||
|
- SETGID
|
||||||
|
- SETUID
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.rtube-hls.rule=Host(`rtube.online`) && PathPrefix(`/hls`)"
|
- "traefik.http.routers.rtube-hls.rule=Host(`rtube.online`) && PathPrefix(`/hls`)"
|
||||||
|
|
@ -52,6 +56,8 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- traefik-public
|
- traefik-public
|
||||||
- rtube-internal
|
- rtube-internal
|
||||||
|
depends_on:
|
||||||
|
- archive-worker
|
||||||
|
|
||||||
archive-worker:
|
archive-worker:
|
||||||
build:
|
build:
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ rtmp {
|
||||||
hls_cleanup on;
|
hls_cleanup on;
|
||||||
|
|
||||||
# On stream end - trigger archive
|
# On stream end - trigger archive
|
||||||
|
# Use service name (Docker Compose DNS)
|
||||||
on_publish_done http://archive-worker:8081/archive;
|
on_publish_done http://archive-worker:8081/archive;
|
||||||
|
|
||||||
# Allow publishing from anywhere (use stream key for security)
|
# Allow publishing from anywhere (use stream key for security)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue