From ad2d82e5aac6a450fe6c2852faad8c4d95ba5fb0 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Sun, 24 Mar 2024 09:24:16 +0100 Subject: [PATCH] pin sevice to ipv4 (#50) #### :book: Summary - workaround for ipv6 issue after updating docker - disable healtcheck due to timing issues #### :bookmark_tabs: Test Plan > :bulb: Select your test plan for the code changes. - [x] CI pipeline - [ ] Custom test - [ ] No test plan ##### Details / Justification #### :books: Additional Notes Reviewed-on: https://gitea.ocram85.com/OCram85/Blog/pulls/50 --- Dockerfile | 4 ++-- nginx.conf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e700991..d904ff3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN npm install \ FROM nginx:1.23.3-alpine as prod LABEL maintainer="marco.blessing@googlemail.com" -HEALTHCHECK --interval=15s --timeout=5s \ - CMD wget --no-verbose --tries=1 --spider http://localhost:80/ || exit 1 +#HEALTHCHECK --interval=15s --timeout=5s \ +# CMD wget --no-verbose --tries=1 --spider http://localhost:80/ || exit 1 COPY --from=builder src/public /usr/share/nignx/html/ COPY nginx.conf /etc/nginx/nginx.conf diff --git a/nginx.conf b/nginx.conf index bf1e9bd..423c4c8 100644 --- a/nginx.conf +++ b/nginx.conf @@ -5,7 +5,7 @@ http { include mime.types; server { - listen 80; + listen 0.0.0.0:80; root /usr/share/nignx/html; index index.html; error_page 404 /404.html;