Ajout de la webapp Docker (FastAPI + HTML/JS vanilla)
- Backend FastAPI avec auth par cookie (users dans config.json) - Upload PDF drag & drop, progression en temps réel (SSE) - Identification des séries via Ollama (config URL dans config.json) - Téléchargement ICS par série + historique des traitements - Bouton vider le cache (site web + mapping LLM) - Docker Swarm ready (docker-compose.yml + Dockerfile) - Compatible iOS/Android/PC (responsive mobile-first) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
version: '3.8'
|
||||
|
||||
# Déploiement Docker Swarm
|
||||
# 1. Construire l'image : docker build -t planning2ics:latest ./webapp
|
||||
# 2. Déployer : docker stack deploy -c webapp/docker-compose.yml planning2ics
|
||||
|
||||
services:
|
||||
app:
|
||||
image: planning2ics:latest
|
||||
ports:
|
||||
- "8080:8000"
|
||||
volumes:
|
||||
# Données persistantes (cache, jobs, uploads)
|
||||
- planning_data:/app/data
|
||||
# Config montée en lecture seule — éditez config.json sur l'hôte
|
||||
- ./config.json:/app/config.json:ro
|
||||
environment:
|
||||
- TZ=Europe/Paris
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
delay: 5s
|
||||
max_attempts: 3
|
||||
update_config:
|
||||
parallelism: 1
|
||||
delay: 10s
|
||||
failure_action: rollback
|
||||
resources:
|
||||
limits:
|
||||
memory: 512M
|
||||
|
||||
volumes:
|
||||
planning_data:
|
||||
driver: local
|
||||
Reference in New Issue
Block a user