From 9f41f4bcbe4db28ef562884605ba38a3bdbf331f Mon Sep 17 00:00:00 2001 From: Moepchi Date: Thu, 30 Jul 2026 18:32:59 +0200 Subject: [PATCH] Fix port double-publish from previous compose change Compose concatenates ports: lists across an override file instead of replacing them, so the ports mapping added in the last commit caused the deployed container to try publishing both 8080 and the override's 8188, colliding with another service already on 8080. Move ports back out of the base file (override-only, as before) and keep the new container_name/image/environment fields. --- README.md | 15 ++++++++++----- docker-compose.yml | 12 ++++++++++-- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index baef34c..9949987 100644 --- a/README.md +++ b/README.md @@ -99,8 +99,6 @@ cd webspeak3 docker compose up -d ``` -That's it — the container builds the frontend, gateway, and Rust connector for you. Open `http://localhost:8080` and connect to any TeamSpeak 3 server. - This is what ships in [`docker-compose.yml`](docker-compose.yml): ```yaml @@ -110,13 +108,20 @@ services: image: moepchi/webspeak3:latest container_name: webspeak3 restart: unless-stopped - ports: - - "8080:8080" environment: - PORT=8080 ``` -Running on a different host port? Just change the left side of `ports:` (e.g. `"9987:8080"`). +Port publishing is left out on purpose — set it in a local, gitignored `docker-compose.override.yml` so it doesn't clash with whatever else is already using a port on your host: + +```yaml +services: + webspeak3: + ports: + - "8080:8080" +``` + +Then `docker compose up -d` and open `http://localhost:8080` (or whatever host port you chose). Prefer to skip the build entirely? A prebuilt image is published on [Docker Hub](https://hub.docker.com/r/moepchi/webspeak3): diff --git a/docker-compose.yml b/docker-compose.yml index 4916dbe..b85361f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,15 @@ services: image: moepchi/webspeak3:latest container_name: webspeak3 restart: unless-stopped - ports: - - "8080:8080" environment: - PORT=8080 + # Port publishing is deployment-specific and left out of this file on + # purpose - Compose concatenates `ports:` lists across an override file + # instead of replacing them, so adding one here would double-publish + # instead of letting an override change it. Set it in a local, gitignored + # docker-compose.override.yml: + # + # services: + # webspeak3: + # ports: + # - "8080:8080"