Improve application deployment and database connection reliability

Refactors Docker configuration and entrypoint script for robust PostgreSQL connectivity and health checks.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/5d315300-98fa-429a-abb0-4fdce6a2e3c9.jpg
This commit is contained in:
michaelschal committed 2025-07-13 11:40:17 +00:00
1 parent 766b451768
commit 037e7e2e49
4 files changed
+54 -70

No files matched your search

+10
View File
@@ -339,6 +339,16 @@ Preferred communication style: Simple, everyday language.
- ✅ Optimized build process with simplified entry point (node dist/index.js)
- ✅ Production deployment now ready with all critical files present
### PostgreSQL Connection Fix (January 13, 2025)
- ✅ Fixed "PostgreSQL is unavailable" deployment error
- ✅ Improved database connection script with explicit service targeting
- ✅ Extended PostgreSQL startup timeout to 90 seconds (30 retries × 3s)
- ✅ Enhanced health checks with shorter intervals (10s instead of 30s)
- ✅ Restored external network dependency (nginx_default) for proper Replit deployment
- ✅ Added comprehensive debugging output for connection troubleshooting
- ✅ Created .env.example template for environment configuration
- ✅ Optimized Docker Compose for maximum deployment compatibility
### Portainer Deployment Fix (January 10, 2025)
- ✅ Resolved Docker image pull error "regisflow-regisflow:latest" in Portainer
- ✅ Created local image building solution with "regisflow:latest" tag