diff options
| author | saturneric <[email protected]> | 2025-11-07 23:11:34 +0000 |
|---|---|---|
| committer | saturneric <[email protected]> | 2025-11-07 23:11:34 +0000 |
| commit | 08055ab37e1f58c0325562ebea137c7e08bbe333 (patch) | |
| tree | b2d306b259286bd768ceac335894c158afbbbecf | |
| parent | feat(docker): enable `highlight` for syntax filtering (diff) | |
| download | cgit-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-- | Dockerfile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
