Merge remote-tracking branch 'origin/master'

This commit is contained in:
Timur
2025-03-02 17:38:50 +03:00
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -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
@@ -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")