From 35fc78ff32479be9a374ebd2e5eaa9800e03bdcb Mon Sep 17 00:00:00 2001 From: Frank John Begornia Date: Mon, 12 Jan 2026 23:42:05 +0800 Subject: [PATCH] fix: update healthcheck command and comment out port mapping for Traefik --- docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 15bc8be..beb346f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,8 +4,8 @@ services: context: . dockerfile: Dockerfile container_name: tablejerseys-web - ports: - - "80:3000" + # ports: + # - "80:3000" # Not needed when using Traefik environment: - NODE_ENV=production # Add your environment variables here @@ -37,7 +37,7 @@ services: - crew-app-net - tablejerseys-network healthcheck: - test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"] + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"] interval: 30s timeout: 10s retries: 3