diff --git a/compose.yaml b/compose.yaml index e580998..c897df6 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,7 +1,13 @@ services: monitor: build: . - ports: ["8000:8000"] + ports: + - "8000:8000" environment: - MONITOR_REQUEST_TIMEOUT_SECONDS: "5" - MONITOR_MAX_REDIRECTS: "5" + MONITOR_LOG_LEVEL: INFO + MONITOR_CHECK_TIMEOUT_SECONDS: "5" + healthcheck: + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health/ready')"] + interval: 10s + timeout: 2s + retries: 3