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