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:
Mikael Westöö
2026-01-23 21:34:33 +01:00
parent c914be9b46
commit 42993ced70
4 changed files with 56 additions and 11 deletions

View File

@@ -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"]