-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
59 lines (54 loc) · 1.9 KB
/
Copy pathdocker-compose.local.yml
File metadata and controls
59 lines (54 loc) · 1.9 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
services:
icloud-privacy-mail:
profiles: ["local-icloud"]
build:
context: .
dockerfile: deploy/icloud-privacy-mail/Dockerfile
image: chatgpt2api/icloud-privacy-mail:local
container_name: chatgpt2api-local-icloud-privacy-mail
restart: unless-stopped
environment:
IPM_API_KEY: ${ICLOUD_PRIVACY_MAIL_API_KEY:-}
IPM_PUBLIC_BASE_URL: ${ICLOUD_PRIVACY_MAIL_PUBLIC_BASE_URL:-http://icloud-privacy-mail:8787}
IPM_UPDATE_ENABLED: "false"
TZ: ${TZ:-Asia/Shanghai}
volumes:
- ./data/icloud-privacy-mail:/data
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8787/login >/dev/null || exit 1"]
interval: 15s
timeout: 5s
retries: 10
start_period: 10s
app:
build:
context: .
dockerfile: Dockerfile
image: chatgpt2api:local
container_name: chatgpt2api-local
ports:
- "8000:80"
volumes:
- ./data:/app/data
- ./logs:/app/logs
- ./config.json:/app/config.json
environment:
STORAGE_BACKEND: sqlite
DATABASE_URL: sqlite:////app/data/accounts.db
ICLOUD_PRIVACY_MAIL_BASE_URL: ${ICLOUD_PRIVACY_MAIL_BASE_URL:-http://icloud-privacy-mail:8787}
# 存储后端配置 (可选值: 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: your-repository-url
# GIT_TOKEN: ghp_xxxxxxxxxxxx
# GIT_BRANCH: main
# GIT_FILE_PATH: accounts.json
# GIT_AUTH_KEYS_FILE_PATH: auth_keys.json
# 认证密钥 (可选,覆盖 config.json)
# CHATGPT2API_AUTH_KEY: your_secret_key
# 基础 URL (可选)
# CHATGPT2API_BASE_URL: https://your-domain.com