diff --git a/Dockerfile b/Dockerfile index a7a05c5..8822e29 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 0c4beaf..618542f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ services: ports: - "${HOST_PORT:-3000}:3000" healthcheck: - test: ["CMD", "wget", "-qO-", "http://localhost:3000/"] + test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/"] interval: 60s timeout: 10s retries: 3