From 9b2dc1ee6b3bd6c4528d7baee9d48b7867fd6811 Mon Sep 17 00:00:00 2001 From: tocmo0nlord Date: Tue, 12 May 2026 23:09:03 +0000 Subject: [PATCH] fix: publish port 8001 to host, replace curl healthcheck with python3 urllib --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0eaff6e..096bd5e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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