- Multi-stage Dockerfile (builder+runner, <500MB target) - docker-compose.yml: app(x4) + postgres + redis + prometheus + grafana + nginx - .env.example with all required secrets (never hardcoded) - requirements.txt with all dependencies including prometheus-client, alembic - GitHub Actions CI: lint (flake8+bandit+safety) + tests + Docker build/push - GitHub Actions CD: staging deploy -> smoke tests -> production deploy + rollback - Alembic migration setup + initial PostgreSQL schema (001_initial_schema) - SQLite→PostgreSQL data migration script - Prometheus metrics module (HTTP, ML, DB, business metrics) - Prometheus alert rules (5xx >1%, latency >2s, disk >80%, ML accuracy) - Grafana dashboard (overview: req/s, p95, ML accuracy, error rate) - Nginx reverse proxy config (HTTPS/TLS, rate limiting, security headers) - Structured JSON logging module - Automated daily DB backup script (pg_dump + 30-day retention) Branch: feature/devops-cicd Co-Authored-By: Paperclip <noreply@paperclip.ing>
109 lines
1.3 KiB
Plaintext
Executable File
109 lines
1.3 KiB
Plaintext
Executable File
# Base de données
|
|
turf.db
|
|
turf.db.old
|
|
*.db
|
|
*.db.bak*
|
|
|
|
# Backups auto
|
|
*.backup_*
|
|
*.bak
|
|
*.bak2
|
|
*.broken
|
|
*.tmp
|
|
*.original
|
|
*.fixed
|
|
|
|
# Données JSON volumineuses
|
|
v3_*.json
|
|
v4_*.json
|
|
v5_*.json
|
|
pmu_*.json
|
|
scoring_*.json
|
|
perf_*.json
|
|
agent_chat.json
|
|
|
|
# Logs et rapports Telegram
|
|
*.log
|
|
telegram_*.txt
|
|
api_log.txt
|
|
|
|
# Modèles ML entraînés
|
|
*.pkl
|
|
feature_importance_*.csv
|
|
|
|
# Archives et binaires
|
|
awscliv2.zip
|
|
*.zip
|
|
*.gz
|
|
|
|
# Python
|
|
__pycache__/
|
|
*.pyc
|
|
*.pyo
|
|
venv/
|
|
.env
|
|
|
|
# Exports
|
|
exports/
|
|
|
|
# Fichiers dashboard temporaires / doublons
|
|
dashboard.html.bak*
|
|
dashboard_backup*.html
|
|
dashboard_new.html
|
|
dashboard_secured.py
|
|
dashboard_system.html
|
|
dashboard_api.py.broken
|
|
dashboard_api_fixed.py
|
|
dashboard_api_original.py
|
|
portal_server.py.original
|
|
portail.html.broken*
|
|
portail_new.html
|
|
portal.html
|
|
|
|
# Fichiers vitesse doublons
|
|
vitesse_api_complete.py
|
|
vitesse_api_fixed.py
|
|
|
|
# Multi-scraper anciennes versions
|
|
multi_scraper_v2.py
|
|
multi_scraper_v3.py
|
|
multi_scraper_v4.py
|
|
|
|
# Fichiers temporaires de fix
|
|
tmp_fix.py
|
|
fix_*.py
|
|
repair_*.py
|
|
patch_*.py
|
|
|
|
# Données scraping brutes
|
|
v3_*.json
|
|
v4_*.json
|
|
|
|
# Environment secrets (NEVER commit)
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
!.env.example
|
|
|
|
# Docker build cache
|
|
.docker/
|
|
|
|
# Editor
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Test artifacts
|
|
.pytest_cache/
|
|
htmlcov/
|
|
.coverage
|
|
coverage.xml
|
|
|
|
# TLS certs (managed by certbot volume)
|
|
infra/nginx/certs/
|