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'
|
version: '3.8'
|
||||||
services:
|
services:
|
||||||
langfuse-worker:
|
langfuse-worker:
|
||||||
|
hostname: 0.0.0.0
|
||||||
env_file:
|
env_file:
|
||||||
- stack.env
|
- stack.env
|
||||||
image: docker.io/langfuse/langfuse-worker:3
|
image: docker.io/langfuse/langfuse-worker:3
|
||||||
depends_on: &langfuse-depends-on
|
depends_on: &langfuse-depends-on
|
||||||
- clickhouse
|
- clickhouse
|
||||||
healthcheck:
|
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
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
@@ -74,12 +75,13 @@ services:
|
|||||||
- net
|
- net
|
||||||
- minio_net
|
- minio_net
|
||||||
langfuse-web:
|
langfuse-web:
|
||||||
|
hostname: 0.0.0.0
|
||||||
image: docker.io/langfuse/langfuse:3
|
image: docker.io/langfuse/langfuse:3
|
||||||
depends_on: *langfuse-depends-on
|
depends_on: *langfuse-depends-on
|
||||||
env_file:
|
env_file:
|
||||||
- stack.env
|
- stack.env
|
||||||
healthcheck:
|
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
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user