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