fix: publish port 8001 to host, replace curl healthcheck with python3 urllib
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user