Update docker-compose.yml
This commit is contained in:
@@ -5,13 +5,21 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.analyzer
|
dockerfile: Dockerfile.analyzer
|
||||||
|
container_name: presidio-analyzer
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "3000"
|
||||||
environment:
|
environment:
|
||||||
- PRESIDIO_ANALYZER_DEFAULT_LANGUAGE=fr
|
- PRESIDIO_ANALYZER_DEFAULT_LANGUAGE=fr
|
||||||
- PYTHONPATH=/usr/bin/presidio-analyzer:/app
|
- PYTHONPATH=/usr/bin/presidio-analyzer:/app
|
||||||
- GUNICORN_CMD_ARGS="--log-level debug --error-logfile - --access-logfile - --capture-output"
|
|
||||||
- PYTHONUNBUFFERED=1
|
- PYTHONUNBUFFERED=1
|
||||||
command: ["gunicorn", "--bind", "0.0.0.0:3000", "--workers", "1", "--log-level", "debug", "--timeout", "120", "presidio_analyzer.app:app"]
|
- LOG_LEVEL=DEBUG
|
||||||
|
# SUPPRIMER la ligne 'command' - utiliser la commande par défaut
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user