Download docker-compose.yml from zlcy/abc: direct link, hf CLI and curl.
- Browser
- Download file 1.56 kB
-
https://huggingface.co/spaces/zlcy/abc/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/zlcy/abc/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/zlcy/abc/resolve/main/docker-compose.yml
1.56 kB
| services: | |
| app: | |
| image: ghcr.io/basketikun/chatgpt2api:latest | |
| container_name: chatgpt2api | |
| restart: unless-stopped | |
| ports: | |
| - "3000:80" | |
| volumes: | |
| - ./data:/app/data | |
| - ./config.json:/app/config.json | |
| environment: | |
| # 存储后端配置 (可选值: json, sqlite, postgres, git) | |
| - STORAGE_BACKEND=json | |
| # 数据库配置 (当 STORAGE_BACKEND=sqlite/postgres 时使用) | |
| # - DATABASE_URL=postgresql://user:password@host:5432/dbname | |
| # - DATABASE_URL=sqlite:///app/data/accounts.db | |
| # Git 仓库配置 (当 STORAGE_BACKEND=git 时使用) | |
| # - GIT_REPO_URL=https://github.com/user/repo.git | |
| # - GIT_TOKEN=ghp_xxxxxxxxxxxx | |
| # - GIT_BRANCH=main | |
| # - GIT_FILE_PATH=accounts.json | |
| # 认证密钥 (可选,覆盖 config.json) | |
| # - CHATGPT2API_AUTH_KEY=your_secret_key | |
| # 基础 URL (可选) | |
| # - CHATGPT2API_BASE_URL=https://your-domain.com | |
| # sentinel 求解服务(对话/生图需要,见 sentinel_solver/README.md) | |
| - CHATGPT2API_SENTINEL_SOLVER_URL=http://sentinel-solver:8080 | |
| - CHATGPT2API_SENTINEL_SOLVER_KEY=change-me | |
| depends_on: | |
| - sentinel-solver | |
| sentinel-solver: | |
| build: ./sentinel_solver | |
| container_name: chatgpt2api-sentinel-solver | |
| restart: unless-stopped | |
| shm_size: "1gb" | |
| environment: | |
| - SENTINEL_SOLVER_KEY=change-me | |
| # 浏览器出网代理(可选),应与主服务访问 chatgpt.com 的出口一致 | |
| # - SENTINEL_SOLVER_PROXY=http://host:7890 | |