Files
task_fraud_detection_bolade/docker-compose.yml
T

28 lines
606 B
YAML
Raw Normal View History

2025-04-25 17:53:04 +01:00
version: '3.8'
2025-04-24 23:39:36 +01:00
services:
fraud-detection:
build: .
2025-04-25 17:53:04 +01:00
container_name: fraud-detection-api
2025-04-24 23:39:36 +01:00
ports:
- "8000:8000" # API
- "8501:8501" # Streamlit
volumes:
- ./data:/app/data
- ./models:/app/models
environment:
- PYTHONUNBUFFERED=1
2025-04-25 17:53:04 +01:00
- ENVIRONMENT=development
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
networks:
- fraud-detection-network
networks:
fraud-detection-network:
driver: bridge