From 34ced61b51257af728dd6f9643ec008688f04e19 Mon Sep 17 00:00:00 2001 From: dlawler489 <104159223@student.swin.edu.au> Date: Mon, 22 Jun 2026 20:43:05 +1000 Subject: [PATCH] compose: make host port configurable (APP_PORT) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Host port 3000 can clash with other services on the deploy host; allow overriding via APP_PORT (default 3000). Only needed for Traefik to reach the app — can be dropped entirely if Traefik shares the Docker network. Co-Authored-By: Claude Opus 4.8 --- docker-compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index c1b9fe4..cb3127d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,8 +34,11 @@ services: - uploads:/app/uploads - thumbnails:/app/thumbnails - glb:/app/glb + # Host port is only for Traefik to reach the app; set APP_PORT to any free + # port (3000 was already taken on the host). If Traefik shares the Docker + # network and routes by container, you can drop this whole `ports:` block. ports: - - "3000:3000" + - "${APP_PORT:-3000}:3000" restart: unless-stopped # Traefik (if using labels rather than your file provider): # labels: