Download docker-compose.yml from NGOC1712/svm_model: direct link, hf CLI and curl.
- Browser
- Download file 481 Bytes
-
https://huggingface.co/spaces/NGOC1712/svm_model/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/NGOC1712/svm_model/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/NGOC1712/svm_model/resolve/main/docker-compose.yml
481 Bytes
| version: '3.8' | |
| services: | |
| svm-classifier: | |
| build: . | |
| ports: | |
| - "8000:8000" | |
| environment: | |
| - MODEL_PATH=fake_news_model.joblib | |
| - API_KEY=my-super-secret-api-key-2024 # THAY ĐỔI NÀY! | |
| volumes: | |
| - ./fake_news_model.joblib:/app/fake_news_model.joblib:ro | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:8000/health"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 40s | |