diff --git a/compose.yaml b/compose.yaml index 7eaa8c7..e4401a3 100644 --- a/compose.yaml +++ b/compose.yaml @@ -376,10 +376,16 @@ services: context: ./services/checker dockerfile: Dockerfile restart: unless-stopped + ports: + - name: web + target: 8000 + published: 8009 + host_ip: 0.0.0.0 + protocol: tcp volumes: - type: bind source: /var/run/docker.sock - target: /prometheus + target: /var/run/docker.sock proxy: image: docker.io/nginx:1.27-alpine3.21 diff --git a/services/backend/integrations/checker/healthcheck.py b/services/backend/integrations/checker/healthcheck.py index 492e127..1ab32f5 100644 --- a/services/backend/integrations/checker/healthcheck.py +++ b/services/backend/integrations/checker/healthcheck.py @@ -11,7 +11,7 @@ class CheckerHealthCheck(BaseHealthCheckBackend): def check_status(self) -> None: try: response = httpx.get( - f"{settings.ANTIFRAUD_ADDRESS}/ping", timeout=1 + f"{settings.CHECKER_API_ENDPOINT}/ping", timeout=1 ) if response.status_code >= status.INTERNAL_SERVER_ERROR: self.add_error("Checker service is unaccessible")