fix(docker): Healthcheck über 127.0.0.1 statt localhost (IPv4/IPv6)
Made-with: Cursor
This commit is contained in:
+1
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user