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.
This commit is contained in:
Moepchi committed 2026-07-30 18:31:05 +02:00
1 parent 6a0ba6f732
commit 302c025018
2 files changed
+16 -9

No files matched your search

+6 -7
View File
@@ -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