Download docker-compose.yml from sureshdeveloperofficial/background-remover-model: direct link, hf CLI and curl.
- Browser
- Download file 871 Bytes
-
https://huggingface.co/sureshdeveloperofficial/background-remover-model/resolve/main/docker-compose.yml
- Command line
-
hf download hf://sureshdeveloperofficial/background-remover-model/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/sureshdeveloperofficial/background-remover-model/resolve/main/docker-compose.yml
871 Bytes
| version: '3.8' | |
| services: | |
| backend: | |
| build: | |
| context: ./backend | |
| dockerfile: Dockerfile | |
| container_name: backgroundremover-backend | |
| ports: | |
| - "8000:8000" | |
| volumes: | |
| - ./backend/app:/app/app | |
| - backgroundremover-temp:/tmp/backgroundremover | |
| environment: | |
| - CORS_ORIGINS=http://localhost:3000,http://localhost:5173,http://localhost:80 | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 40s | |
| frontend: | |
| build: | |
| context: ./frontend | |
| dockerfile: Dockerfile | |
| container_name: backgroundremover-frontend | |
| ports: | |
| - "80:80" | |
| depends_on: | |
| - backend | |
| restart: unless-stopped | |
| volumes: | |
| backgroundremover-temp: | |