fix: use 127.0.0.1 instead of localhost in healthcheck (IPv6 resolution issue)
This commit is contained in:
@@ -11,4 +11,4 @@ RUN sed -i '/location \/ {/a\ try_files $uri $uri/ /index.html;' /etc/ngi
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
EXPOSE 3000
|
||||
HEALTHCHECK --interval=60s --timeout=10s --retries=3 \
|
||||
CMD wget -qO- http://localhost:3000/ || exit 1
|
||||
CMD wget -qO- http://127.0.0.1:3000/ || exit 1
|
||||
|
||||
Reference in New Issue
Block a user