Update docker-compose.yml
This commit is contained in:
@@ -5,20 +5,13 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.analyzer
|
dockerfile: Dockerfile.analyzer
|
||||||
container_name: presidio-analyzer
|
|
||||||
restart: unless-stopped
|
|
||||||
ports:
|
|
||||||
- "3000"
|
|
||||||
# Forcer l'utilisateur root pour éviter les problèmes
|
|
||||||
user: "0:0"
|
|
||||||
environment:
|
environment:
|
||||||
- PRESIDIO_ANALYZER_DEFAULT_LANGUAGE=fr
|
- PRESIDIO_ANALYZER_DEFAULT_LANGUAGE=fr
|
||||||
- PYTHONPATH=/usr/bin/presidio-analyzer:/app
|
- PYTHONPATH=/usr/bin/presidio-analyzer:/app
|
||||||
healthcheck:
|
- GUNICORN_CMD_ARGS="--log-level debug --error-logfile - --access-logfile - --capture-output"
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
|
- PYTHONUNBUFFERED=1
|
||||||
interval: 30s
|
command: ["gunicorn", "--bind", "0.0.0.0:3000", "--workers", "1", "--log-level", "debug", "--timeout", "120", "presidio_analyzer.app:app"]
|
||||||
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