refactor: optimize docker, robust config & country handling
All checks were successful
🚀 Docker Build and Push / build-and-push (push) Successful in 59s

- optimize(docker): use distroless/python3-debian12 & multi-stage build
- feat(app): replace Gunicorn with Waitress (pure python)
- feat(countries): replace static list with pycountry (dynamic & complete)
- feat(config): enforce mandatory APPRISE_URL (fatal if missing)
- feat(logging): add structured logging and graceful shutdown signal handling
- docs: update README with required env var and correct usage
This commit is contained in:
2025-12-31 18:46:21 +01:00
parent eef8c3835e
commit d180cb700c
4 changed files with 106 additions and 29 deletions

View File

@@ -17,7 +17,7 @@ L'image Docker est automatiquement construite et poussée sur `gitea.killinger.f
| Variable | Description | Défaut |
|----------|-------------|--------|
| `APPRISE_URL` | URL du endpoint Apprise | `http://192.168.1.118:8000/notify/telegram_alerts` |
| `APPRISE_URL` | URL du endpoint Apprise | **Requis** |
### Docker Run
@@ -25,8 +25,9 @@ L'image Docker est automatiquement construite et poussée sur `gitea.killinger.f
docker run -d \
--name crowdsec-notify \
--restart unless-stopped \
-e APPRISE_URL=http://your-apprise-url/notify/my_alert_config \
-p 5000:5000 \
gitea.killinger.fr/services/crowdsec-notify:latest
crowdsec-notify:latest
```
## Configuration CrowdSec