Download docker-compose.yml from deploy199/README: direct link, hf CLI and curl.
- Browser
- Download file 601 Bytes
-
https://huggingface.co/spaces/deploy199/README/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/deploy199/README/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/deploy199/README/resolve/main/docker-compose.yml
601 Bytes
| version: '3.8' | |
| services: | |
| fastapi-telegram-bot: | |
| build: . | |
| container_name: fastapi-telegram-bot | |
| ports: | |
| - "7860:7860" | |
| environment: | |
| - API_ID=${API_ID} | |
| - API_HASH=${API_HASH} | |
| - BOT_TOKEN=${BOT_TOKEN} | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:7860/health')"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 40s | |
| volumes: | |
| - ./logs:/app/logs | |
| networks: | |
| - bot-network | |
| networks: | |
| bot-network: | |
| driver: bridge | |