-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (25 loc) · 967 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
29 lines (25 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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