From 302c02501810aba741771ebc029604bd8aebf33c Mon Sep 17 00:00:00 2001 From: Moepchi Date: Thu, 30 Jul 2026 18:31:05 +0200 Subject: [PATCH] Flesh out docker-compose.yml with a complete, self-documenting example Add container_name, an image tag, direct port mapping, and an explicit PORT env var instead of pointing to a separate override file just to publish a port. --- README.md | 12 ++++++++++-- docker-compose.yml | 13 ++++++------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 7529f03..baef34c 100644 --- a/README.md +++ b/README.md @@ -99,17 +99,25 @@ cd webspeak3 docker compose up -d ``` -That's it — the container builds the frontend, gateway, and Rust connector for you. Open `http://localhost:8080` (or your configured port) and connect to any TeamSpeak 3 server. +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. -Port publishing is deployment-specific — set it in a local, gitignored `docker-compose.override.yml`: +This is what ships in [`docker-compose.yml`](docker-compose.yml): ```yaml services: webspeak3: + build: . + 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"`). + Prefer to skip the build entirely? A prebuilt image is published on [Docker Hub](https://hub.docker.com/r/moepchi/webspeak3): ```bash diff --git a/docker-compose.yml b/docker-compose.yml index b39c4e9..4916dbe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,11 +1,10 @@ services: webspeak3: build: . + image: moepchi/webspeak3:latest + container_name: webspeak3 restart: unless-stopped - # Port publishing is deployment-specific (depends on what's free on the - # host) - set it in a local, gitignored docker-compose.override.yml, e.g.: - # - # services: - # webspeak3: - # ports: - # - "8080:8080" + ports: + - "8080:8080" + environment: + - PORT=8080