Spaces:
Sleeping
Sleeping
Download docker-compose.yml from orakzai-io/Async_Web_scraper: direct link, hf CLI and curl.
- Browser
- Download file 996 Bytes
-
https://huggingface.co/spaces/orakzai-io/Async_Web_scraper/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/orakzai-io/Async_Web_scraper/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/orakzai-io/Async_Web_scraper/resolve/main/docker-compose.yml
996 Bytes
| services: | |
| backend: | |
| build: | |
| context: ./Backend | |
| dockerfile: Dockerfile | |
| image: scraper-backend:v1 | |
| ports: | |
| - "8000:8000" | |
| volumes: | |
| - ./Backend/data:/app/data | |
| env_file: | |
| - ./Backend/.env | |
| environment: | |
| - PORT=8000 | |
| - DB_HOST=host.docker.internal | |
| extra_hosts: | |
| - "host.docker.internal:host-gateway" | |
| restart: unless-stopped | |
| frontend: | |
| build: | |
| context: ./Frontend | |
| dockerfile: Dockerfile | |
| target: build # <--- Important: Stops at the Node stage | |
| image: scraper-frontend:v1-dev | |
| ports: | |
| - "5173:5173" # <--- Map to Vite's port, not Nginx's port 80 | |
| volumes: | |
| - ./Frontend:/app # <--- Syncs your code changes | |
| - /app/node_modules # <--- Protects container's installed packages | |
| command: npm run dev -- --host 0.0.0.0 # <--- Tells Vite to listen for Docker | |
| depends_on: | |
| - backend | |
| restart: unless-stopped | |