Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
csszyft
wb2api
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
wb2api
/
docker-compose.yml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
24 lines (24 loc) · 1.27 KB
main
Breadcrumbs
wb2api
/
docker-compose.yml
Copy path
Top
File metadata and controls
Code
Blame
24 lines (24 loc) · 1.27 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
services:
wb2api:
image: ghcr.io/csszyft/wb2api:latest # 生产建议钉显式版本,如 :v1.9.41
container_name: workbuddy2api
restart: unless-stopped
environment:
- TZ=Asia/Shanghai
# 配置项优先在面板「配置」页改:保存后会落到卷里的 config.json 并即时生效。
# 这里只放"路径类"(改路径要重启),避免与面板互相覆盖。
- WB2A_AUTH_DIR=/app/data/auths
- WB2A_STATE_FILE=/app/data/state.json
# 首次启动若不设 WB2A_API_KEY:二进制会生成随机 key 并写进 ./data/config.json,
# 打开该文件即可看到(面板登录与客户端 Bearer 都用它)。
# - WB2A_API_KEY=改成你自己的
ports:
- "7863:7863"
volumes:
# 单一卷,全部持久化数据都在里面:
# config.json(面板保存的目标)/ auths/(账号凭证)/ state.json / usage.json
#
# 注意(v1.9.4 起的行为变更):配置不再是 /app/config.json 那个只读示例,
# 而是卷里的 ./data/config.json。老部署若是靠挂载 ./config.json:/app/config.json
# 提供配置,入口脚本会自动把它迁移进卷;迁移过一次后请删掉那条挂载,否则两边会不一致。
- ./data:/app/data
You can’t perform that action at this time.