version: '3.8' services: bloom-ai: build: . container_name: bloom-ai-assistant volumes: - huggingface-cache:/app/cache ports: - "7860:7860" environment: - PYTHONUNBUFFERED=1 - PYTHONDONTWRITEBYTECODE=1 - HF_HOME=/app/cache - TRANSFORMERS_PARALLELISM=false - TORCH_HOME=/app/cache/torch - PORT=7860 healthcheck: test: ["CMD", "curl", "-f", "http://localhost:7860/"] interval: 30s timeout: 10s retries: 3 start_period: 40s deploy: resources: limits: memory: 16G reservations: memory: 8G volumes: huggingface-cache: