48 lines
No EOL
1 KiB
Markdown
48 lines
No EOL
1 KiB
Markdown
# Traefik Deployment avec Blue/Green
|
|
|
|
Projet de déploiement Traefik avec compilation sur Forgejo et déploiement sécurisé.
|
|
|
|
## Architecture
|
|
|
|
- **Forgejo** (http://eregion.chezlepro.ca:3000) : Compilation depuis sources
|
|
- **Serveur prod** : Binaire uniquement (sécurité maximale)
|
|
- **Stratégie** : Blue/Green deployment
|
|
|
|
## Quick Start
|
|
|
|
```bash
|
|
# 1. Installer Ansible
|
|
make install-collections
|
|
|
|
# 2. Configurer
|
|
make setup
|
|
|
|
# 3. Tester la connexion
|
|
make test-connection
|
|
|
|
# 4. Compiler sur Forgejo (~10-15 min)
|
|
make build-forgejo
|
|
|
|
# 5. Déployer
|
|
make deploy
|
|
```
|
|
|
|
## Commandes
|
|
|
|
- `make help` - Affiche l'aide
|
|
- `make build-forgejo` - Compile sur Forgejo
|
|
- `make deploy` - Déploie en Blue/Green
|
|
- `make rollback` - Rollback instantané
|
|
- `make status` - Statut des services
|
|
|
|
## Sécurité
|
|
|
|
Le serveur de production ne contient :
|
|
- ❌ Aucun outil de compilation
|
|
- ❌ Aucun code source
|
|
- ✅ Binaire Traefik uniquement
|
|
|
|
## Support
|
|
|
|
Instance Forgejo : http://eregion.chezlepro.ca:3000
|
|
Dépôt : http://eregion.chezlepro.ca:3000/Chezlepro/traefik-deploy |