50 lines
1 KiB
Markdown
50 lines
1 KiB
Markdown
# Runbook — Déploiement
|
|
|
|
## Prérequis
|
|
|
|
- Accès au registry Docker
|
|
- Variables d'environnement configurées (voir `.env.example`)
|
|
- Base de données migrée
|
|
|
|
## Étapes
|
|
|
|
### 1. Build images
|
|
|
|
```bash
|
|
docker build -t veza/backend-api:${VERSION} -f veza-backend-api/Dockerfile .
|
|
docker build -t veza/stream-server:${VERSION} -f veza-stream-server/Dockerfile .
|
|
docker build -t veza/web:${VERSION} -f apps/web/Dockerfile .
|
|
```
|
|
|
|
### 2. Push images
|
|
|
|
```bash
|
|
docker push veza/backend-api:${VERSION}
|
|
docker push veza/stream-server:${VERSION}
|
|
docker push veza/web:${VERSION}
|
|
```
|
|
|
|
### 3. Migrations
|
|
|
|
```bash
|
|
cd veza-backend-api
|
|
DATABASE_URL=postgres://... make migrate
|
|
```
|
|
|
|
### 4. Deploy
|
|
|
|
Suivant l'orchestrateur (Kubernetes, Docker Compose, etc.) :
|
|
|
|
- Mettre à jour les images dans les manifests
|
|
- Appliquer : `kubectl apply -f k8s/` ou `docker-compose up -d`
|
|
|
|
### 5. Vérification
|
|
|
|
```bash
|
|
curl -s https://api.example.com/health | jq
|
|
curl -s https://api.example.com/health/deep | jq
|
|
```
|
|
|
|
### 6. Rollback
|
|
|
|
En cas de problème : voir [ROLLBACK.md](ROLLBACK.md).
|