From 6f18ec9b3feb4bda20a3e2cf4bcfcd2b69ccc85b Mon Sep 17 00:00:00 2001 From: AAA <35992542+TNTcraftHIM@users.noreply.github.com> Date: Sat, 31 Oct 2026 21:20:21 -0400 Subject: [PATCH] fix(container): publish Rust Server media UDP entry --- deploy/container/.env.example | 5 +++++ deploy/container/Dockerfile | 2 +- deploy/container/compose.yaml | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deploy/container/.env.example b/deploy/container/.env.example index fd42dd73c..36ba397e0 100644 --- a/deploy/container/.env.example +++ b/deploy/container/.env.example @@ -8,5 +8,10 @@ PIIK_CHANNEL_INVITE_KEY= # Optional WebRTC ICE server JSON; defaults to the shared public STUN choices. # PIIK_CHANNEL_ICE_SERVERS=[{"urls":["stun:stun.cloudflare.com:3478"]}] +# Rust Server media uses this direct UDP port; allow it through the host firewall. +PIIK_CHANNEL_UDP_PORT=8787 +# Optional fixed public IP:port when NAT or a UDP tunnel changes the reachable address. +# PIIK_CHANNEL_UDP_PUBLIC_ADDRESS=203.0.113.10:8787 + # To pin a release, replace latest with its vMAJOR.MINOR.PATCH tag. # PIIK_IMAGE=ghcr.io/tntcrafthim/piik:latest diff --git a/deploy/container/Dockerfile b/deploy/container/Dockerfile index c8f378b8d..c97f1cc62 100644 --- a/deploy/container/Dockerfile +++ b/deploy/container/Dockerfile @@ -15,5 +15,5 @@ COPY --chmod=0444 LICENSE THIRD-PARTY-NOTICES.txt REVISION /app/ COPY web/ /app/web/ ENV PIIK_CHANNEL_BIND_ADDRESS=0.0.0.0 PIIK_CHANNEL_PORT=8787 PIIK_CHANNEL_DATA_DIR=/home/nonroot USER 65532:65532 -EXPOSE 8787/tcp +EXPOSE 8787/tcp 8787/udp ENTRYPOINT ["/app/piik-server"] diff --git a/deploy/container/compose.yaml b/deploy/container/compose.yaml index 5fe610392..a760dd0b1 100644 --- a/deploy/container/compose.yaml +++ b/deploy/container/compose.yaml @@ -12,11 +12,13 @@ services: environment: PIIK_CHANNEL_BIND_ADDRESS: 0.0.0.0 PIIK_CHANNEL_PORT: 8787 + PIIK_CHANNEL_UDP_PORT: ${PIIK_CHANNEL_UDP_PORT:-8787} PIIK_CHANNEL_DATA_DIR: /home/nonroot PIIK_CHANNEL_OWNER_KEY: ${PIIK_CHANNEL_OWNER_KEY:?Set a private stable owner key} PIIK_CHANNEL_INVITE_KEY: ${PIIK_CHANNEL_INVITE_KEY:?Set a separate stable invitation key} ports: - "127.0.0.1:8787:8787/tcp" + - "${PIIK_CHANNEL_UDP_PORT:-8787}:${PIIK_CHANNEL_UDP_PORT:-8787}/udp" volumes: - piik-data:/home/nonroot