Update docker-compose.yml

This commit is contained in:
Nacim
2025-06-16 04:17:39 +02:00
committed by GitHub
parent 106978077b
commit a5ec0cf17e

View File

@@ -1,28 +1,22 @@
# Fichier : docker-compose.yml (Version simplifiée)
version: '3.8' version: '3.8'
services: services:
# Le service qui détecte les PII. Il est maintenant exposé publiquement.
presidio-analyzer: presidio-analyzer:
image: mcr.microsoft.com/presidio-analyzer:latest build:
context: .
dockerfile: Dockerfile.analyzer
container_name: presidio-analyzer container_name: presidio-analyzer
restart: unless-stopped restart: unless-stopped
ports: ports:
- "5001" - "5001" # Le port interne
environment:
- PRESIDIO_ANALYZER_DEFAULT_LANGUAGE=en
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: presidio-anonymizer:
image: mcr.microsoft.com/presidio-anonymizer:latest image: mcr.microsoft.com/presidio-anonymizer:latest
container_name: presidio-anonymizer container_name: presidio-anonymizer
restart: unless-stopped restart: unless-stopped
ports: ports:
- "5002" - "5002" # Le port interne
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3