Skip to content

Commit bac67f9

Browse files
authored
Fix healthcheck commands (#1151)
ref #1150 the backend healthcheck on localhost doesn't work, needs to be `0.0.0.0`: ``` /app $ wget --spider http://localhost:8400/ping Connecting to localhost:8400 ([::1]:8400) wget: can't connect to remote host: Connection refused ```
1 parent 8be3d95 commit bac67f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ RUN set -ex \
1818

1919
EXPOSE 8400
2020

21-
HEALTHCHECK --interval=15s --timeout=5s --retries=5 \
22-
CMD wget --spider http://localhost:8400 || exit 1
21+
HEALTHCHECK --interval=10s --timeout=5s --retries=5 \
22+
CMD wget --spider http://0.0.0.0:8400/ping || exit 1
2323

2424
CMD pipenv run gunicorn \
2525
-k uvicorn.workers.UvicornWorker \

frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ EXPOSE 3000
5151

5252
ENTRYPOINT ["/app/entrypoint.sh"]
5353

54-
HEALTHCHECK --interval=15s --timeout=5s --retries=5 \
54+
HEALTHCHECK --interval=10s --timeout=5s --retries=5 \
5555
CMD wget --spider http://localhost:3000 || exit 1
5656

5757
CMD yarn start

0 commit comments

Comments
 (0)