SmartCertify-ML / docker-compose.yml
Harsh Yadav
feat: migrate to HF Spaces — ResNet-18 CNN + BERT + DistilBERT + tabular ensemble
8e68c3a
raw
history blame contribute delete
515 Bytes
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