-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (56 loc) · 2.49 KB
/
docker-compose.yml
File metadata and controls
65 lines (56 loc) · 2.49 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
60
61
62
63
64
65
services:
vibe-kanban:
image: liukunup/vibe-kanban:latest
container_name: vibe-kanban
restart: unless-stopped
ports:
- "8080:8080"
environment:
# --- 设置时区 ---
- TZ=Asia/Shanghai
# --- 设置 AI Coding 模型的 API 密钥 (可选, 但推荐) ---
# 取消注释并填入你的 API Key 以启用对应 AI 辅助编码功能
# - OPENAI_API_KEY=sk-... # OpenAI (GPT-4, etc.)
# - ANTHROPIC_API_KEY=sk-ant-... # Anthropic (Claude, etc.)
# - GEMINI_API_KEY=... # Google Gemini
# - GITHUB_TOKEN=ghp_... # GitHub Copilot
# --- Git 用户配置 (可选) ---
# 如果你没有挂载 .gitconfig, 可以在这里设置 Git 提交时的用户信息
# - GIT_AUTHOR_NAME=Your Name
# - GIT_AUTHOR_EMAIL=your@email.com
# - GIT_COMMITTER_NAME=Your Name
# - GIT_COMMITTER_EMAIL=your@email.com
volumes:
# --- [重要] 项目目录挂载 ---
# 将宿主机的代码目录挂载到容器内的 /projects 目录下
# 请根据您的操作系统选择合适的配置并取消注释
# MacOS / Linux
# - ${HOME}/Documents/projects:/projects
# Windows
# - C:/Users/YourUserName/Documents/projects:/projects
# --- SSH (可选) ---
# 挂载 SSH 密钥 (只读), 以便容器可以访问 GitHub/GitLab 等私有仓库
# - ${HOME}/.ssh:/root/.ssh:ro
# --- Git (只读) ---
# 挂载 Git 配置文件 (只读), 以便容器内共享用户名和邮箱等设置
# - ${HOME}/.gitconfig:/root/.gitconfig:ro
# --- GitHub CLI (可选) ---
# 如果你在宿主机已经登录了 gh 命令行工具, 挂载后容器内可直接使用
# macOS/Linux 路径通常是 ~/.config/gh
# - ${HOME}/.config/gh:/root/.config/gh
# --- GitHub Copilot (可选) ---
# 如果你在宿主机已经登录了 GitHub Copilot, 挂载后容器内可直接使用
# macOS/Linux 路径通常是 ~/.copilot
# - ${HOME}/.copilot:/root/.copilot
# --- Docker Socket (可选) ---
# 如果你希望在容器内使用 Docker CLI 操作宿主机的 Docker
# 请取消注释以挂载
# - /var/run/docker.sock:/var/run/docker.sock
# --- 缓存 (可选但推荐) ---
# 挂载缓存卷以持久化存储 Vibe Kanban 数据和配置
# 这样即使重建容器, 数据和配置也不会丢失
- vk-data:/root/.local/share/vibe-kanban
- vk-bin:/root/.vibe-kanban
volumes:
vk-data:
vk-bin: