Fix deployment issues
- Remove healthcheck from Dockerfile (Coolify handles this) - Make database connection non-blocking - Add Coolify-specific docker-compose file - Improve error handling for database connection
This commit is contained in:
@@ -22,8 +22,4 @@ USER nodejs
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD node -e "require('http').get('http://localhost:3000/', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
|
||||
Reference in New Issue
Block a user