aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-11-07 23:11:34 +0000
committersaturneric <[email protected]>2025-11-07 23:11:34 +0000
commit08055ab37e1f58c0325562ebea137c7e08bbe333 (patch)
treeb2d306b259286bd768ceac335894c158afbbbecf
parentfeat(docker): enable `highlight` for syntax filtering (diff)
downloadcgit-08055ab37e1f58c0325562ebea137c7e08bbe333.tar.gz
cgit-08055ab37e1f58c0325562ebea137c7e08bbe333.zip
fix(docker): update healthcheck to use `127.0.0.1`
* Change healthcheck URL from `localhost` to `127.0.0.1` * Addresses issues in environments where `localhost` may not resolve * Improves reliability of container health monitoring
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index f6317ce..596a0c4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -31,7 +31,7 @@ RUN mkdir -p /var/cache/cgit && \
chown -R lighttpd:lighttpd /repositories
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
- CMD wget --no-verbose --tries=1 --spider http://localhost/ || exit 1
+ CMD wget --no-verbose --tries=1 --spider http://127.0.0.1/ || exit 1
EXPOSE 80
ENTRYPOINT [ "lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf" ] \ No newline at end of file