Spaces:
Running
Running
| version: '3.8' | |
| services: | |
| kronos-api: | |
| build: | |
| context: .. | |
| dockerfile: ./kronos-api-service/Dockerfile | |
| ports: | |
| - "7860:7860" | |
| environment: | |
| # For local testing, you can set a fixed API key. | |
| # For production (like Hugging Face Spaces), this should be set via secrets. | |
| - KRONOS_API_KEY=my-secret-local-key | |
| volumes: | |
| # Mount the service code for live-reloading during development | |
| - .:/app | |
| # Mount a local directory to the container's huggingface cache directory. | |
| # This will persist downloaded models on your host machine. | |
| - ../.hf_cache:/root/.cache/huggingface | |
| restart: unless-stopped |