Download agy2api/docker-compose.yml from a3216/ds2api: direct link, hf CLI and curl.
- Browser
- Download file 661 Bytes
-
https://huggingface.co/spaces/a3216/ds2api/resolve/main/agy2api/docker-compose.yml
- Command line
-
hf download hf://spaces/a3216/ds2api/agy2api/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/a3216/ds2api/resolve/main/agy2api/docker-compose.yml
661 Bytes
| version: '3.8' | |
| services: | |
| agy2api: | |
| image: ghcr.io/su-kaka/agy2api:latest | |
| container_name: agy2api | |
| restart: unless-stopped | |
| network_mode: host | |
| environment: | |
| # 密码配置(分离密码) | |
| - API_PASSWORD=${API_PASSWORD:-your_api_password} | |
| - PANEL_PASSWORD=${PANEL_PASSWORD:-your_panel_password} | |
| # 服务器配置 | |
| - PORT=${PORT:-7861} | |
| - HOST=${HOST:-0.0.0.0} | |
| # 可选: PostgreSQL 配置 (分布式存储) | |
| # - POSTGRESQL_URI=${POSTGRESQL_URI} | |
| # 可选: 代理配置 | |
| # - PROXY=${PROXY} | |
| volumes: | |
| - ./data/creds:/app/creds | |
| - ./data/request_logs:/app/data/request_logs | |