-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.78 KB
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# ── SCRIBE — docker-compose.yml (version open-source) ─────────────────────
# Usage :
# docker compose up -d → premier démarrage
# docker compose down → arrêt
# docker compose logs -f → logs en temps réel
# docker compose pull && docker compose up -d → mise à jour
services:
scribe:
build:
context: .
dockerfile: Dockerfile
container_name: scribe
restart: on-failure:3 # Évite la boucle infinie si config manquante
ports:
- "${SCRIBE_PORT:-8000}:8000"
volumes:
# Données persistantes : base SQLite, uploads, config générée
- scribe_data:/data
# ── CONFIG PERSONNALISÉE ──────────────────────────────────────
# Décommentez et adaptez pour utiliser votre propre config.xml :
# - ./config.xml:/data/config.xml:ro
#
# Sans ce volume, SCRIBE démarre en mode DEMO (config_demo1.xml).
# login: dircrise / password: voir config_demo1.xml
# ──────────────────────────────────────────────────────────────
environment:
# Fournisseur IA (surpasse config.xml si renseigné)
- SCRIBE_IA_PROVIDER=${SCRIBE_IA_PROVIDER:-albert}
- SCRIBE_IA_KEY=${SCRIBE_IA_KEY:-}
- SCRIBE_IA_MODEL=${SCRIBE_IA_MODEL:-}
- SCRIBE_IA_URL=${SCRIBE_IA_URL:-}
# Niveau de log
- LOG_LEVEL=${LOG_LEVEL:-info}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
volumes:
scribe_data:
driver: local