From 16a38533cd53c16efb289aba3f59632713b4a596 Mon Sep 17 00:00:00 2001 From: Tom Quist Date: Mon, 23 Jun 2025 11:59:57 +0200 Subject: [PATCH] Update health check port --- Dockerfile | 4 ++-- health_service.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2f4d7f1..3af4f7d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,11 +28,11 @@ RUN rm -rf /app/ha_addon # Expose the ports your application will be listening on EXPOSE 12345/tcp EXPOSE 12345/udp -EXPOSE 8124/tcp +EXPOSE 52500/tcp # Add health check that uses the same endpoint as HA addon HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ - CMD curl -f http://localhost:8124/health || exit 1 + CMD curl -f http://localhost:52500/health || exit 1 # Run the SmartMeter script when the container starts CMD ["pipenv", "run", "python", "main.py", "--loglevel", "info"] \ No newline at end of file diff --git a/health_service.py b/health_service.py index 5762661..4cbe23b 100644 --- a/health_service.py +++ b/health_service.py @@ -156,7 +156,7 @@ def start_health_service(port=52500, bind_address='0.0.0.0'): Start the global health check service. Args: - port (int): Port to bind to (default: 8124) + port (int): Port to bind to (default: 52500) bind_address (str): Address to bind to (default: 'localhost') Returns: