diff --git a/apiserver/Dockerfile b/apiserver/Dockerfile index 95cf9a0..510eb1f 100644 --- a/apiserver/Dockerfile +++ b/apiserver/Dockerfile @@ -9,7 +9,7 @@ RUN pyarmor gen --output /app /app/main.py RUN apk --update --no-cache add curl -HEALTHCHECK --start-period=10s --interval=60s --timeout=3s CMD curl -f http://localhost:8888/health || exit 1 +HEALTHCHECK --start-period=10s --interval=60s --timeout=3s CMD curl -f http://localhost:80/health || exit 1 RUN mkdir /cache VOLUME /cache diff --git a/apiserver/main.py b/apiserver/main.py index f7c5db3..23de1b6 100644 --- a/apiserver/main.py +++ b/apiserver/main.py @@ -89,7 +89,7 @@ def do_GET(self): def start_api_server(): - with socketserver.TCPServer(("0.0.0.0", 8888), apiHandler) as httpd: + with socketserver.TCPServer(("0.0.0.0", 80), apiHandler) as httpd: httpd.serve_forever() diff --git a/novel/Dockerfile b/novel/Dockerfile index d808c99..510eb1f 100644 --- a/novel/Dockerfile +++ b/novel/Dockerfile @@ -9,7 +9,7 @@ RUN pyarmor gen --output /app /app/main.py RUN apk --update --no-cache add curl -HEALTHCHECK --start-period=10s --interval=60s --timeout=3s CMD curl -f http://localhost:8008/health || exit 1 +HEALTHCHECK --start-period=10s --interval=60s --timeout=3s CMD curl -f http://localhost:80/health || exit 1 RUN mkdir /cache VOLUME /cache diff --git a/novel/main.py b/novel/main.py index 742c78a..2ab431a 100644 --- a/novel/main.py +++ b/novel/main.py @@ -138,7 +138,7 @@ def do_GET(self): def start_health_server(): - with socketserver.TCPServer(("0.0.0.0", 8008), HealthCheckHandler) as httpd: + with socketserver.TCPServer(("0.0.0.0", 80), HealthCheckHandler) as httpd: httpd.serve_forever()