feat: déploiement Docker/Coolify — Dockerfile + docker-compose.yml + scalper serve (SCAL-15)
- serveur HTTP stdlib: GET /healthz, GET /check-source, POST /run (gate légal appliqué, 403 si bloqué) - image python:3.12-slim, user non-root, healthcheck, volumes data/out persistants - .env.example (.env ignoré), .dockerignore, docs/deploy-coolify.md - 39 tests OK + smoke loopback
This commit is contained in:
1 parent
876faf3ede
commit
67b165e913
9 files changed
+293
No files matched your search
@@ -69,6 +69,16 @@ python -m pytest -q # ou python -m unittest discover -s tests
|
||||
|
||||
CI GitHub Actions (lint + tests) sur chaque PR — voir `.github/workflows/ci.yml`.
|
||||
|
||||
## Déploiement Docker / Coolify
|
||||
|
||||
```bash
|
||||
cp .env.example .env # MISTRAL_API_KEY (jamais committer)
|
||||
docker compose up -d # sert http://localhost:8000 (GET /healthz, GET /check-source, POST /run)
|
||||
```
|
||||
|
||||
Déploiement pas à pas sur Coolify : [docs/deploy-coolify.md](docs/deploy-coolify.md).
|
||||
Le conteneur applique le même gate légal que la CLI (sources non déclarées/bloquées refusées).
|
||||
|
||||
## Licence
|
||||
|
||||
MIT — voir [LICENSE](LICENSE).
|
||||
Reference in new issue
Block a user