From 6c8b7b6a8299e18c14225f46a0593600fce2abb9 Mon Sep 17 00:00:00 2001 From: Nacim Date: Mon, 16 Jun 2025 03:39:53 +0200 Subject: [PATCH] Update docker-compose.yml --- docker-compose.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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