Fix health check IPv6 issue: use 127.0.0.1 instead of localhost
This commit is contained in:
@@ -28,7 +28,7 @@ EXPOSE 3000
|
||||
|
||||
# Healthcheck
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1
|
||||
CMD wget -q --spider http://127.0.0.1:3000/health || exit 1
|
||||
|
||||
# Starten
|
||||
CMD ["node", "dist/index.js"]
|
||||
|
||||
Reference in New Issue
Block a user