unhealthy container fix

This commit is contained in:
root
2026-05-26 15:28:36 -04:00
parent 2ffbc203e0
commit 797e01eece
+20 -20
View File
@@ -32,11 +32,11 @@ services:
context: .
dockerfile: Dockerfile.production
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
interval: 10s
timeout: 5s
retries: 6
start_period: 30s
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:4000/health', (r) => process.exit(r.statusCode < 400 ? 0 : 1)).on('error', () => process.exit(1))\""]
interval: 15s
timeout: 10s
retries: 5
start_period: 60s
command:
- bash
- -c
@@ -82,11 +82,11 @@ services:
NEXT_PUBLIC_DASHBOARD_URL: ${NEXT_PUBLIC_DASHBOARD_URL}
NEXT_PUBLIC_ADMIN_URL: ${NEXT_PUBLIC_ADMIN_URL}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
interval: 10s
timeout: 5s
retries: 6
start_period: 30s
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:3000/', (r) => process.exit(r.statusCode < 400 ? 0 : 1)).on('error', () => process.exit(1))\""]
interval: 15s
timeout: 10s
retries: 5
start_period: 60s
command: ["npm", "run", "start", "--workspace", "@rentaldrivego/marketplace"]
networks:
- internal
@@ -117,11 +117,11 @@ services:
NEXT_PUBLIC_DASHBOARD_URL: ${NEXT_PUBLIC_DASHBOARD_URL}
NEXT_PUBLIC_ADMIN_URL: ${NEXT_PUBLIC_ADMIN_URL}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/"]
interval: 10s
timeout: 5s
retries: 6
start_period: 30s
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:3001/', (r) => process.exit(r.statusCode < 400 ? 0 : 1)).on('error', () => process.exit(1))\""]
interval: 15s
timeout: 10s
retries: 5
start_period: 60s
command: ["npm", "run", "start", "--workspace", "@rentaldrivego/dashboard"]
networks:
- internal
@@ -152,11 +152,11 @@ services:
NEXT_PUBLIC_DASHBOARD_URL: ${NEXT_PUBLIC_DASHBOARD_URL}
NEXT_PUBLIC_ADMIN_URL: ${NEXT_PUBLIC_ADMIN_URL}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3002/"]
interval: 10s
timeout: 5s
retries: 6
start_period: 30s
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:3002/', (r) => process.exit(r.statusCode < 400 ? 0 : 1)).on('error', () => process.exit(1))\""]
interval: 15s
timeout: 10s
retries: 5
start_period: 60s
command: ["npm", "run", "start", "--workspace", "@rentaldrivego/admin"]
networks:
- internal