-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-cli.sh
More file actions
executable file
·41 lines (31 loc) · 1.09 KB
/
docker-cli.sh
File metadata and controls
executable file
·41 lines (31 loc) · 1.09 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
#!/bin/bash
IMAGE_NAME="liukunup/vibe-kanban:latest"
CONTAINER_NAME="vibe-kanban"
echo "Stopping and removing existing container..."
docker stop $CONTAINER_NAME 2>/dev/null
docker rm $CONTAINER_NAME 2>/dev/null
echo "Starting new container..."
docker run -d \
--name $CONTAINER_NAME \
--restart unless-stopped \
-p 8080:8080 \
-e TZ=Asia/Shanghai \
-v vk-data:/root/.local/share/vibe-kanban \
-v vk-bin:/root/.vibe-kanban \
$IMAGE_NAME
# --- 可选配置 (请手动添加到上面的命令中) ---
# 1. AI API Keys:
# -e OPENAI_API_KEY="sk-..." \
# -e ANTHROPIC_API_KEY="sk-ant-..." \
# -e GITHUB_TOKEN="ghp_..." \
# 2. Git 用户配置:
# -e GIT_AUTHOR_NAME="Your Name" \
# -e GIT_AUTHOR_EMAIL="your@email.com" \
# 3. 项目目录挂载 (macOS/Linux):
# -v "${HOME}/Documents/projects:/projects" \
# 4. SSH/Git/Copilot 配置:
# -v "${HOME}/.ssh:/root/.ssh:ro" \
# -v "${HOME}/.gitconfig:/root/.gitconfig:ro" \
# -v "${HOME}/.config/gh:/root/.config/gh" \
# -v "${HOME}/.copilot:/root/.copilot" \
echo "Done. Container $CONTAINER_NAME is running on port 8080."