Update healthcheck commands and start periods for langfuse-worker and langfuse services in docker-compose.yml

This commit is contained in:
2025-12-21 00:18:12 +00:00
parent 15d2b4ed95
commit ec2b786555

View File

@@ -7,11 +7,11 @@ services:
depends_on: &langfuse-depends-on
- clickhouse
healthcheck:
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:3030/api/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)}).on('error', () => process.exit(1))\""]
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3030/api/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
start_period: 30s
environment: &langfuse-worker-env
# NEXTAUTH_URL: ${NEXTAUTH_URL:-http://localhost:3000}
# DATABASE_URL: ${DATABASE_URL:-postgresql://postgres:postgres@postgres:5432/postgres} # CHANGEME
@@ -79,11 +79,11 @@ services:
env_file:
- stack.env
healthcheck:
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:3000/api/public/health?failIfDatabaseUnavailable=true', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)}).on('error', () => process.exit(1))\""]
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider 'http://localhost:3000/api/public/health?failIfDatabaseUnavailable=true' || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
start_period: 30s
environment:
<<: *langfuse-worker-env
# NEXTAUTH_SECRET: ${NEXTAUTH_SECRET:-mysecret} # CHANGEME