Improve the system setup and database management for the application

Removes the explicit declaration of `regisflow-network` in `docker-compose.yml`, updates `drizzle-kit push:pg` to `drizzle-kit push` in `docker-entrypoint.sh`, and adds attached assets.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 91318273-c764-4fd4-be04-bdc12c38af32
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/6e755801-08e8-4492-805e-ac3610de5a2a.jpg
This commit is contained in:
michaelschal committed 2025-07-09 20:39:00 +00:00
1 parent 62e93f372d
commit 896dc6cca0
3 files changed
+2 -10

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

+1 -9
View File
@@ -14,8 +14,6 @@ services:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro - ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro
ports: ports:
- "5432:5432" - "5432:5432"
networks:
- regisflow-network
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U regisflow -d regisflow"] test: ["CMD-SHELL", "pg_isready -U regisflow -d regisflow"]
@@ -40,8 +38,6 @@ services:
- backup_data:/app/backups - backup_data:/app/backups
ports: ports:
- "5000:5000" - "5000:5000"
networks:
- regisflow-network
restart: unless-stopped restart: unless-stopped
healthcheck: 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/health || exit 1"]
@@ -56,8 +52,4 @@ volumes:
postgres_data: postgres_data:
driver: local driver: local
backup_data: backup_data:
driver: local driver: local
networks:
regisflow-network:
driver: bridge
+1 -1
View File
@@ -15,7 +15,7 @@ echo "✅ Base de données prête!"
# Exécuter les migrations de base de données # Exécuter les migrations de base de données
echo "🔄 Exécution des migrations..." echo "🔄 Exécution des migrations..."
npx drizzle-kit push:pg npx drizzle-kit push
# Créer le répertoire des sauvegardes s'il n'existe pas # Créer le répertoire des sauvegardes s'il n'existe pas
mkdir -p /app/backups mkdir -p /app/backups