docs: mise à jour DEPLOYMENT.md et PRODUCTION_CHECKLIST pour nouvelle structure
CI / Lint & Format (push) Failing after 8s
CI / Tests (push) Has been skipped
CI / Security Scan (push) Failing after 7s
CI / Docker Build (push) Has been skipped

This commit is contained in:
2026-06-24 10:57:36 -04:00
parent 99205931c9
commit 13a40555f7
2 changed files with 172 additions and 110 deletions
+12 -10
View File
@@ -33,7 +33,7 @@
| # | Tâche | Pourquoi |
|---|---|---|
| 15 | Backup automatique PostgreSQL (pg_dump cron daily) | Perte de toutes les métadonnées |
| 16 | Backup MinIO/S3 (rclone ou S3 replication) | Perte de toutes les images |
| 16 | Backup des fichiers uploadés (rsync ou rclone) | Perte de toutes les images |
| 17 | Tester une restauration complète (backup + restore) | Un backup non testé n'existe pas |
### 🔄 Migrations BDD
@@ -119,14 +119,16 @@
### Quick Start (top 5 à faire aujourd'hui)
```bash
# 1. Générer des secrets forts
openssl rand -hex 32 # pour SECRET_KEY
openssl rand -hex 32 # pour ADMIN_API_KEY
openssl rand -hex 32 # pour JWT_SECRET_KEY
openssl rand -hex 16 # pour MINIO_ROOT_PASSWORD
# 1. Déployer avec l'assistant interactif
./scripts/deploy.sh
# 2. Mettre à jour .env avec ces valeurs
# 3. DEBUG=false
# 4. CORS_ORIGINS=["https://ton-domaine.com"]
# 5. docker compose up -d
# 2. Vérifier la santé
curl http://localhost:8001/health
# 3. Configurer CORS pour le domaine de production
# Éditer .env : CORS_ORIGINS=["https://ton-domaine.com"]
# 4. Activer DEBUG=false dans .env
# 5. Mettre en place les backups automatiques (voir docs/DEPLOYMENT.md)
```