Spaces:
Paused
Paused
File size: 1,042 Bytes
99a7ebb | 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 30 31 32 33 34 35 | services:
app:
build:
context: .
dockerfile: Dockerfile
image: chatgpt2api:local
container_name: chatgpt2api-local
ports:
- "8000:80"
volumes:
- ./data:/app/data
- ./config.json:/app/config.json
environment:
STORAGE_BACKEND: sqlite
DATABASE_URL: sqlite:////app/data/accounts.db
# 存储后端配置 (可选值: json, sqlite, postgres, git)
# environment:
# 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
|