Update healthcheck commands in docker-compose.yml to use static IP addresses for improved reliability
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
langfuse-worker:
|
||||
hostname: 0.0.0.0
|
||||
env_file:
|
||||
- stack.env
|
||||
image: docker.io/langfuse/langfuse-worker:3
|
||||
depends_on: &langfuse-depends-on
|
||||
- clickhouse
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "-e", "const http=require('http');const os=require('os');const host=os.hostname();const url='http://' + host + ':3030/api/health';const req=http.get(url,res=>{process.exit(res.statusCode===200?0:1)});req.on('error',()=>process.exit(1));"]
|
||||
test: ["CMD", "node", "-e", "const http=require('http');const req=http.get('http://127.0.0.1:3030/api/health',res=>{process.exit(res.statusCode===200?0:1)});req.on('error',()=>process.exit(1));"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
@@ -74,12 +75,13 @@ services:
|
||||
- net
|
||||
- minio_net
|
||||
langfuse-web:
|
||||
hostname: 0.0.0.0
|
||||
image: docker.io/langfuse/langfuse:3
|
||||
depends_on: *langfuse-depends-on
|
||||
env_file:
|
||||
- stack.env
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "-e", "const http=require('http');const os=require('os');const host=os.hostname();const url='http://' + host + ':3000/api/public/health';const req=http.get(url,res=>{process.exit(res.statusCode===200?0:1)});req.on('error',()=>process.exit(1));"]
|
||||
test: ["CMD", "node", "-e", "const http=require('http');const req=http.get('http://127.0.0.1:3000/api/public/health',res=>{process.exit(res.statusCode===200?0:1)});req.on('error',()=>process.exit(1));"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user