fix: update healthcheck command and comment out port mapping for Traefik
Some checks failed
Deploy Production / deploy (push) Failing after 51s

This commit is contained in:
Frank John Begornia
2026-01-12 23:42:05 +08:00
parent d768ae7c4c
commit 35fc78ff32

View File

@@ -4,8 +4,8 @@ services:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: tablejerseys-web container_name: tablejerseys-web
ports: # ports:
- "80:3000" # - "80:3000" # Not needed when using Traefik
environment: environment:
- NODE_ENV=production - NODE_ENV=production
# Add your environment variables here # Add your environment variables here
@@ -37,7 +37,7 @@ services:
- crew-app-net - crew-app-net
- tablejerseys-network - tablejerseys-network
healthcheck: 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 interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3