mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-11 17:29:48 +02:00
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:
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
@@ -14,8 +14,6 @@ services:
|
||||
- ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro
|
||||
ports:
|
||||
- "5432:5432"
|
||||
networks:
|
||||
- regisflow-network
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U regisflow -d regisflow"]
|
||||
@@ -40,8 +38,6 @@ services:
|
||||
- backup_data:/app/backups
|
||||
ports:
|
||||
- "5000:5000"
|
||||
networks:
|
||||
- regisflow-network
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:5000/health || exit 1"]
|
||||
@@ -56,8 +52,4 @@ volumes:
|
||||
postgres_data:
|
||||
driver: local
|
||||
backup_data:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
regisflow-network:
|
||||
driver: bridge
|
||||
driver: local
|
||||
@@ -15,7 +15,7 @@ echo "✅ Base de données prête!"
|
||||
|
||||
# Exécuter les migrations de base de données
|
||||
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
|
||||
mkdir -p /app/backups
|
||||
|
||||
Reference in new issue
Block a user