Update docker-compose.yml

This commit is contained in:
Nacim
2025-06-16 03:28:46 +02:00
committed by GitHub
parent bd329a3ee9
commit c05d93b49f

View File

@@ -9,10 +9,11 @@ services:
restart: unless-stopped restart: unless-stopped
ports: ports:
- "5001" - "5001"
# Forcer l'utilisateur root si nécessaire
user: "0:0"
environment: environment:
- PRESIDIO_ANALYZER_DEFAULT_LANGUAGE=fr - PRESIDIO_ANALYZER_DEFAULT_LANGUAGE=fr
# Spécifier la commande directement pour éviter Poetry
command: ["python", "-m", "presidio_analyzer"]
working_dir: /usr/bin/presidio-analyzer
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5001/health"] test: ["CMD", "curl", "-f", "http://localhost:5001/health"]
interval: 30s interval: 30s