Fix automatic database backup system for production

Resolves an issue where the automatic backup service was not initialized in the production environment, preventing daily backups. Updates `docker-compose.yml` to include a backup directory and volume, modifies `index.production.ts` to import and initialize the backup service, and enhances `replit.md` with details of the fix. A new verification script `scripts/verify-backup-system.sh` is added to confirm the system's functionality.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
This commit is contained in:
michaelschal committed 2025-08-18 12:06:40 +00:00
1 parent b3ad47fe83
commit c851aacb28
4 files changed
+114 -1

No files matched your search

+4
View File
@@ -16,6 +16,7 @@ services:
POSTGRES_USER: logiflow_admin
POSTGRES_PASSWORD: LogiFlow2025!
POSTGRES_DB: logiflow_db
BACKUP_DIR: /app/backups
ports:
- "3000:3000"
networks:
@@ -25,6 +26,7 @@ services:
condition: service_healthy
volumes:
- ./migrations:/app/migrations
- backup_data:/app/backups
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"]
interval: 30s
@@ -57,6 +59,8 @@ services:
volumes:
postgres_data:
driver: local
backup_data:
driver: local
networks:
nginx_default: