docs: mise à jour DEPLOYMENT.md et PRODUCTION_CHECKLIST pour nouvelle structure
This commit is contained in:
@@ -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)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user