Fix container port mapping to match host port

PLUTAINER_PORT sets the port the container listens on, so the mapping
should be <port>:<port>, not <port>:28960 — otherwise the container is
bound to a port nothing inside is listening on.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-09-13 18:47:24 -04:00
co-authored by Claude Opus 4.7
parent 21d9b54953
commit 58f48c6906
+4 -3
View File
@@ -17,7 +17,6 @@ import { kick } from '../pipeline/worker.js';
// ever add MP or SP, split these based on mode. // ever add MP or SP, split these based on mode.
const T5_ZOMBIE_CONFIG_FILE = 'dedicated_sp.cfg'; const T5_ZOMBIE_CONFIG_FILE = 'dedicated_sp.cfg';
const T5_ZOMBIE_GAME_ID = 't5sp'; const T5_ZOMBIE_GAME_ID = 't5sp';
const CONTAINER_PORT = 28960;
export type CreateServerFailure = export type CreateServerFailure =
| 'unconfigured' // Komodo creds / target server missing | 'unconfigured' // Komodo creds / target server missing
@@ -106,9 +105,11 @@ function buildSpec(args: {
server: config.komodo.targetServer, server: config.komodo.targetServer,
image: config.komodo.defaultImage, image: config.komodo.defaultImage,
network: config.komodo.defaultNetwork, network: config.komodo.defaultNetwork,
// Container listens on PLUTAINER_PORT (== args.port), so host and
// container ports match — no NAT inside the bridge network.
ports: [ ports: [
`${args.port}:${CONTAINER_PORT}/udp`, `${args.port}:${args.port}/udp`,
`${args.port}:${CONTAINER_PORT}/tcp` `${args.port}:${args.port}/tcp`
], ],
volumes: [ volumes: [
`${args.hostDir}:/home/plutainer/app`, `${args.hostDir}:/home/plutainer/app`,