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

+9 -9
View File
@@ -17,11 +17,11 @@ services:
- "5433:5432"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U regisflow -d regisflow"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
test: ["CMD-SHELL", "pg_isready -U regisflow -d regisflow || exit 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 40s
# Application RegisFlow
regisflow:
@@ -53,11 +53,11 @@ services:
- "5000:5000"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:5000/health || exit 1"]
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:5000/ || exit 1"]
interval: 30s
timeout: 15s
retries: 3
start_period: 90s
timeout: 10s
retries: 5
start_period: 120s
# Volumes persistants (Docker gère automatiquement)
volumes: