From 58f48c69063429f5f29c26ae6dbb20eeb767f049 Mon Sep 17 00:00:00 2001 From: josh Date: Sun, 13 Sep 2026 18:47:24 -0400 Subject: [PATCH] Fix container port mapping to match host port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PLUTAINER_PORT sets the port the container listens on, so the mapping should be :, not :28960 — otherwise the container is bound to a port nothing inside is listening on. Co-Authored-By: Claude Opus 4.7 --- src/lib/server/fleet/create.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/server/fleet/create.ts b/src/lib/server/fleet/create.ts index c16d70d..f326080 100644 --- a/src/lib/server/fleet/create.ts +++ b/src/lib/server/fleet/create.ts @@ -17,7 +17,6 @@ import { kick } from '../pipeline/worker.js'; // ever add MP or SP, split these based on mode. const T5_ZOMBIE_CONFIG_FILE = 'dedicated_sp.cfg'; const T5_ZOMBIE_GAME_ID = 't5sp'; -const CONTAINER_PORT = 28960; export type CreateServerFailure = | 'unconfigured' // Komodo creds / target server missing @@ -106,9 +105,11 @@ function buildSpec(args: { server: config.komodo.targetServer, image: config.komodo.defaultImage, network: config.komodo.defaultNetwork, + // Container listens on PLUTAINER_PORT (== args.port), so host and + // container ports match — no NAT inside the bridge network. ports: [ - `${args.port}:${CONTAINER_PORT}/udp`, - `${args.port}:${CONTAINER_PORT}/tcp` + `${args.port}:${args.port}/udp`, + `${args.port}:${args.port}/tcp` ], volumes: [ `${args.hostDir}:/home/plutainer/app`,