From 21c182d69a0f3f3073eeaf1628db834077a5049d Mon Sep 17 00:00:00 2001 From: Nacim Date: Mon, 16 Jun 2025 04:36:16 +0200 Subject: [PATCH] Update docker-compose.yml --- docker-compose.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 46404f0..7e53b7c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,4 @@ -# Fichier : docker-compose.yml (Version simplifiée) -version: '3.8' - services: - # Le service qui détecte les PII. Il est maintenant exposé publiquement. presidio-analyzer: build: context: . @@ -10,13 +6,23 @@ services: container_name: presidio-analyzer restart: unless-stopped ports: - - "5001" # Le port interne + - "5001" + environment: + - PRESIDIO_ANALYZER_DEFAULT_LANGUAGE=fr + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:3000/health"] + interval: 30s + timeout: 10s + retries: 3 - # Le service qui anonymise. Il est maintenant exposé publiquement. presidio-anonymizer: image: mcr.microsoft.com/presidio-anonymizer:latest container_name: presidio-anonymizer restart: unless-stopped ports: - - "5002" # Le port interne - + - "5002" + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:3000/health"] + interval: 30s + timeout: 10s + retries: 3