From 75afcbc0d1b4ae277a8ffbe07f80c8b7a82794b9 Mon Sep 17 00:00:00 2001 From: Zac Gaetano Date: Sun, 3 May 2026 13:30:02 +0000 Subject: [PATCH] deploy(compose): pass RTMP/SRT/TLS port overrides through from .env MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The compose file's environment: block only forwarded the variables it explicitly referenced — CORE_ADDRESS, CORE_API_AUTH_*, CORE_WEBRTC_*, CORE_LOG_LEVEL. Everything else got the upstream Core defaults regardless of what was in .env. So 'CORE_RTMP_ADDRESS=:1937' in .env was silently ignored and Core kept binding 1935. Hit on the live TrueNAS host where another datarhei/restreamer container was already on 1935 with active stream state — couldn't just stop it. Adding explicit env passthrough for the four common collision points (RTMP, RTMPS, SRT, TLS) so an operator can remap each individually without editing this file: CORE_RTMP_ADDRESS=:1937 CORE_RTMP_ADDRESS_TLS=:1938 CORE_SRT_ADDRESS=:6002 CORE_TLS_ADDRESS=:8183 Defaults are unchanged — empty .env keeps :1935/:1936/:6000/:8181. Co-Authored-By: Claude Opus 4.7 --- deploy/truenas/core/docker-compose.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/deploy/truenas/core/docker-compose.yml b/deploy/truenas/core/docker-compose.yml index 47a2136..6673a5e 100644 --- a/deploy/truenas/core/docker-compose.yml +++ b/deploy/truenas/core/docker-compose.yml @@ -42,6 +42,17 @@ services: # Leave NAT1To1_IPS empty unless you need multiple advertised IPs. # CORE_WEBRTC_NAT_1_TO_1_IPS: "10.0.0.25 203.0.113.10" + # --- RTMP / RTMPS / SRT / TLS port overrides --- + # Default Datarhei ports (1935, 1936, 6000, 8181) are common + # and frequently collide with an existing upstream datarhei/ + # restreamer container or other RTMP servers on the same host. + # Pull these out of .env so operators can remap without editing + # this file. Empty strings keep the upstream defaults. + CORE_RTMP_ADDRESS: "${CORE_RTMP_ADDRESS:-:1935}" + CORE_RTMP_ADDRESS_TLS: "${CORE_RTMP_ADDRESS_TLS:-:1936}" + CORE_SRT_ADDRESS: "${CORE_SRT_ADDRESS:-:6000}" + CORE_TLS_ADDRESS: "${CORE_TLS_ADDRESS:-:8181}" + # --- Storage --- # Let the volumes below provide durable paths; defaults are fine.