fix(docker): Healthcheck über 127.0.0.1 statt localhost (IPv4/IPv6)

Made-with: Cursor
This commit is contained in:
2026-04-18 11:17:56 +02:00
parent 359fc7caee
commit bfb733de5c
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ EXPOSE 3000
# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD node -e "require('http').get('http://localhost:3000/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) })" || exit 1
CMD node -e "require('http').get('http://127.0.0.1:3000/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) })" || exit 1
# Start the application with startup script
CMD ["/app/start.sh"]