Spaces:
Sleeping
Sleeping
Download docker-compose.yml from saiteja020/PowerGrid: direct link, hf CLI and curl.
- Browser
- Download file 937 Bytes
-
https://huggingface.co/spaces/saiteja020/PowerGrid/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/saiteja020/PowerGrid/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/saiteja020/PowerGrid/resolve/main/docker-compose.yml
937 Bytes
| networks: | |
| bess-net: | |
| driver: bridge | |
| services: | |
| backend: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| ports: | |
| - "8000:8000" | |
| volumes: | |
| - ./train/models:/app/train/models | |
| - ./data:/app/data | |
| environment: | |
| - GEMINI_API_KEY=${GEMINI_API_KEY} | |
| - GEMINI_MODEL=${GEMINI_MODEL:-gemini-1.5-flash} | |
| - LLM_PROVIDER=${LLM_PROVIDER:-GEMINI} | |
| - HF_TOKEN=${HF_TOKEN} | |
| - HF_MODEL=${HF_MODEL:-google/gemma-2-9b-it} | |
| - PORT=8000 | |
| networks: | |
| - bess-net | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:8000/info"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 30s | |
| frontend: | |
| build: | |
| context: frontend | |
| dockerfile: Dockerfile | |
| ports: | |
| - "3000:80" | |
| depends_on: | |
| backend: | |
| condition: service_healthy | |
| networks: | |
| - bess-net | |
| restart: unless-stopped | |