Spaces:
Runtime error
Runtime error
Download docker-compose.yml from IDKHowToCodeFr/tinyml-backend: direct link, hf CLI and curl.
- Browser
- Download file 641 Bytes
-
https://huggingface.co/spaces/IDKHowToCodeFr/tinyml-backend/resolve/b9f97a7cd9cb1ae980c1f6861bc6b4d2eaed2eaa/docker-compose.yml
- Command line
-
hf download hf://spaces/IDKHowToCodeFr/tinyml-backend@b9f97a7cd9cb1ae980c1f6861bc6b4d2eaed2eaa/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/IDKHowToCodeFr/tinyml-backend/resolve/b9f97a7cd9cb1ae980c1f6861bc6b4d2eaed2eaa/docker-compose.yml
641 Bytes
| version: '3.8' | |
| services: | |
| backend: | |
| build: | |
| context: ./backend | |
| dockerfile: Dockerfile | |
| ports: | |
| - "8000:8000" | |
| environment: | |
| - HF_TOKEN=${HF_TOKEN:-} | |
| volumes: | |
| # Mount DB for persistence (in production use a volume, here bind-mount is okay for dev) | |
| - backend_data:/app | |
| frontend: | |
| build: | |
| context: ./frontend | |
| dockerfile: Dockerfile | |
| ports: | |
| - "3000:3000" | |
| environment: | |
| # Next.js will build this at build-time, but here it is for client-side API requests | |
| - NEXT_PUBLIC_API_URL=http://localhost:8000 | |
| depends_on: | |
| - backend | |
| volumes: | |
| backend_data: | |