| version: '3.8' | |
| services: | |
| fintech-classifier: | |
| build: . | |
| container_name: fintech-review-classifier | |
| ports: | |
| - "5000:5000" | |
| volumes: | |
| - ./model:/app/model:ro # Mount model as read-only | |
| environment: | |
| - FLASK_ENV=production | |
| - PYTHONUNBUFFERED=1 | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:5000/health"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 40s |