version: "3.8" services: ml: build: . ports: - "7860:7860" environment: - ML_API_KEY=${ML_API_KEY:-smartcertify-dev-key} - LOG_LEVEL=${LOG_LEVEL:-INFO} - TRANSFORMERS_OFFLINE=1 - HF_DATASETS_OFFLINE=1 volumes: - ./logs:/app/logs restart: unless-stopped healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')"] interval: 30s timeout: 10s retries: 3