diff --git a/docker-compose.yml b/docker-compose.yml index 98d88ab..ef81792 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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