fix: publish port 8001 to host, replace curl healthcheck with python3 urllib

This commit is contained in:
2026-05-12 23:09:03 +00:00
parent b6d5e6ee57
commit 9b2dc1ee6b

View File

@@ -6,13 +6,15 @@ services:
container_name: activeblue-agent
restart: unless-stopped
env_file: .env
ports:
- '0.0.0.0:8001:8001'
depends_on:
agent-db:
condition: service_healthy
networks:
- activeblue-net
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8001/health']
test: ['CMD', 'python3', '-c', "import urllib.request; urllib.request.urlopen('http://localhost:8001/health', timeout=5)"]
interval: 30s
timeout: 10s
retries: 3