9ed22fb14a
- Dockerfile : copie config.json dans l'image (évite le problème de répertoire) - app.py : load_config() lit les variables d'environnement en priorité sur config.json - docker-compose.yml : converti en compose standard (sans section deploy Swarm) - docker-compose.swarm.yml : nouveau fichier dédié au déploiement Docker Swarm Variables supportées : OLLAMA_URL, OLLAMA_CLUSTER_MODEL, OLLAMA_LOCAL_MODEL, SITE_CALENDAR_URL, SITE_BASE_URL, AUTH_SESSION_SECRET, AUTH_USERS Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
869 B
YAML
25 lines
869 B
YAML
services:
|
|
app:
|
|
image: git.piaf.im/sylvain/planning2ics:latest
|
|
ports:
|
|
- "8080:8000"
|
|
volumes:
|
|
- planning_data:/app/data
|
|
# Optionnel : surcharger la config avec un fichier local
|
|
# - ./config.json:/app/config.json:ro
|
|
environment:
|
|
- TZ=Europe/Paris
|
|
# Variables de configuration (priorité sur config.json embarqué)
|
|
# - OLLAMA_URL=http://192.168.7.119:11434
|
|
# - OLLAMA_CLUSTER_MODEL=qwen3.5:cloud
|
|
# - OLLAMA_LOCAL_MODEL=qwen3:8b
|
|
# - SITE_CALENDAR_URL=https://www.opera-orchestre-montpellier.fr/calendrier/?saisons=32669
|
|
# - SITE_BASE_URL=https://www.opera-orchestre-montpellier.fr
|
|
# - AUTH_SESSION_SECRET=changez-cette-cle-secrete-en-production
|
|
# - AUTH_USERS=[{"username":"admin","password":"changeme"}]
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
planning_data:
|
|
driver: local
|