Skip to content

Commit 424a807

Browse files
committed
Website: Fix Docker healthcheck always failing
`wget` resolved `localhost` to `[::1]` (IPv6) but nginx only listens on IPv4, making the healthcheck permanently unhealthy despite the site working fine.
1 parent 045bc6e commit 424a807

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/website/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ EXPOSE 80
3939

4040
# Health check
4141
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
42-
CMD wget --no-verbose --tries=1 --spider http://localhost/ || exit 1
42+
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1/ || exit 1
4343

4444
CMD ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)