Skip to content

Commit

Permalink
change default port
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye committed Apr 3, 2024
1 parent 08a613d commit cdc68ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apiserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion apiserver/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down
2 changes: 1 addition & 1 deletion novel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion novel/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit cdc68ae

Please sign in to comment.