Update docker-compose.yml

This commit is contained in:
Nacim
2025-06-16 03:39:53 +02:00
committed by GitHub
parent 57bce79bb5
commit 6c8b7b6a82

View File

@@ -11,9 +11,12 @@ services:
- "5001" - "5001"
environment: environment:
- PRESIDIO_ANALYZER_DEFAULT_LANGUAGE=fr - PRESIDIO_ANALYZER_DEFAULT_LANGUAGE=fr
- GUNICORN_CMD_ARGS="--log-level debug --error-logfile - --access-logfile -" # SUPPRIMER toute ligne 'command' qui fait référence à gunicorn
command: ["gunicorn", "--bind", "0.0.0.0:3000", "--workers", "1", "--log-level", "debug", "--error-logfile", "-", "presidio_analyzer.app:app"] healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
presidio-anonymizer: presidio-anonymizer:
image: mcr.microsoft.com/presidio-anonymizer:latest image: mcr.microsoft.com/presidio-anonymizer:latest
@@ -22,7 +25,7 @@ services:
ports: ports:
- "5002" - "5002"
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5002/health"] test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3