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
|
container_name: activeblue-agent
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
ports:
|
||||||
|
- '0.0.0.0:8001:8001'
|
||||||
depends_on:
|
depends_on:
|
||||||
agent-db:
|
agent-db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
networks:
|
networks:
|
||||||
- activeblue-net
|
- activeblue-net
|
||||||
healthcheck:
|
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
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user