Spaces:
Build error
Build error
Download docker-compose.yml from houssamDev/solar_predict_ai: direct link, hf CLI and curl.
- Browser
- Download file 660 Bytes
-
https://huggingface.co/spaces/houssamDev/solar_predict_ai/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/houssamDev/solar_predict_ai/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/houssamDev/solar_predict_ai/resolve/main/docker-compose.yml
660 Bytes
| version: "3.9" | |
| services: | |
| solar-predictor: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| image: solar-lstm-predictor:latest | |
| container_name: solar_predictor | |
| ports: | |
| - "5000:5000" # host:container → http://localhost:5000 | |
| environment: | |
| PORT: 5000 | |
| WORKERS: 2 # gunicorn workers (increase for prod) | |
| TIMEOUT: 120 | |
| FLASK_DEBUG: 0 | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "python3", "-c", | |
| "import urllib.request; urllib.request.urlopen('http://localhost:5000/health')"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 15s | |