nginx: auch auf IPv6 lauschen, Healthcheck über 127.0.0.1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WT5AWHW7UkHrBjhNyA2y8X
This commit is contained in:
tillandClaude Opus 5.5 committed 2026-10-04 21:29:57 +02:00
1 parent 4b711ebe9a
commit e0ed777f9c
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -4,4 +4,4 @@ COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY *.html /usr/share/nginx/html/ COPY *.html /usr/share/nginx/html/
COPY assets/ /usr/share/nginx/html/assets/ COPY assets/ /usr/share/nginx/html/assets/
EXPOSE 80 EXPOSE 80
HEALTHCHECK CMD wget -qO- http://localhost/ >/dev/null 2>&1 || exit 1 HEALTHCHECK CMD wget -qO- http://127.0.0.1/ >/dev/null 2>&1 || exit 1
+1
View File
@@ -1,5 +1,6 @@
server { server {
listen 80; listen 80;
listen [::]:80;
server_name _; server_name _;
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;