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