Download docker-compose.yml from tamgaa/app: direct link, hf CLI and curl.
- Browser
- Download file 854 Bytes
-
https://huggingface.co/spaces/tamgaa/app/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/tamgaa/app/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/tamgaa/app/resolve/main/docker-compose.yml
854 Bytes
| # Run the whole app (backend + frontend) with one command: | |
| # docker compose up --build | |
| # Then open http://localhost:5173 | |
| services: | |
| backend: | |
| build: | |
| context: . | |
| dockerfile: backend/Dockerfile | |
| ports: | |
| - "8000:8000" | |
| environment: | |
| - ANSWER_MODE=extractive | |
| - LOG_LEVEL=INFO | |
| # Stable session-signing key. Without it the backend mints a random key on | |
| # every restart and all logins are invalidated. For real use, put a strong | |
| # secret in a .env file next to this compose: AUTH_SECRET_KEY=<random hex>. | |
| - AUTH_SECRET_KEY=${AUTH_SECRET_KEY:-dev-only-change-me} | |
| # Optional: persist the SQLite DB across restarts. | |
| volumes: | |
| - backend_data:/app/data | |
| frontend: | |
| build: | |
| context: ./frontend | |
| ports: | |
| - "5173:80" | |
| depends_on: | |
| - backend | |
| volumes: | |
| backend_data: | |