mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 16:47:10 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
+7
-1
@@ -376,10 +376,16 @@ services:
|
|||||||
context: ./services/checker
|
context: ./services/checker
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- name: web
|
||||||
|
target: 8000
|
||||||
|
published: 8009
|
||||||
|
host_ip: 0.0.0.0
|
||||||
|
protocol: tcp
|
||||||
volumes:
|
volumes:
|
||||||
- type: bind
|
- type: bind
|
||||||
source: /var/run/docker.sock
|
source: /var/run/docker.sock
|
||||||
target: /prometheus
|
target: /var/run/docker.sock
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
image: docker.io/nginx:1.27-alpine3.21
|
image: docker.io/nginx:1.27-alpine3.21
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ class CheckerHealthCheck(BaseHealthCheckBackend):
|
|||||||
def check_status(self) -> None:
|
def check_status(self) -> None:
|
||||||
try:
|
try:
|
||||||
response = httpx.get(
|
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:
|
if response.status_code >= status.INTERNAL_SERVER_ERROR:
|
||||||
self.add_error("Checker service is unaccessible")
|
self.add_error("Checker service is unaccessible")
|
||||||
|
|||||||
Reference in New Issue
Block a user