Merge pull request #35 from pacnpal/copilot/fix-docker-healthcheck-function

Fix broken Docker healthcheck URL construction
This commit is contained in:
pacnpal
2026-02-19 12:54:17 -05:00
committed by GitHub

View File

@@ -5,9 +5,8 @@ import os
def check_health():
try:
host = os.environ.get('ADGUARD_HOST', 'localhost')
port = os.environ.get('ADGUARD_PORT', '8000')
url = f'http://{host}:{port}/health'
port = os.environ.get('APP_PORT', '8000')
url = f'http://localhost:{port}/health'
with httpx.Client() as client:
response = client.get(url)
response.raise_for_status()