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 }}
dianso
sb.sb
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
sb.sb
/
docker-compose.yml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
35 lines (32 loc) · 1.65 KB
main
Breadcrumbs
sb.sb
/
docker-compose.yml
Copy path
Top
File metadata and controls
Code
Blame
35 lines (32 loc) · 1.65 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
25
26
27
28
29
30
31
32
33
34
35
# ============================================================
# sb.sb 论坛 RSS 推送 —— Docker Compose 演示配置
#
# 用法:
# 1. 复制 .env.example 为 .env 并填入真实凭据(变量说明见其内部注释)
# 2. docker compose up -d 启动
# 3. docker compose logs -f 跟踪日志(应用日志直出 stdout,重启后仍可查)
#
# 说明:
# - 本文件为演示模板,随仓库提交
# - 本地实际部署建议复制为 compose.yml 再修改:Compose 会优先读取
# compose.yml,且该文件名已在 .gitignore 中排除,不会误提交真实凭据
# ============================================================
services:
sb-bot:
# 镜像标签二选一(均为 amd64 / arm64 双架构):
# latest —— Debian trixie(glibc)
# alpine —— Alpine(musl,体积更小)
# 也可换用 GHCR 同名仓库:ghcr.io/dianso/sb.sb
image: docker.io/dianso/sb.sb:latest
container_name: sb-bot
restart: always
# PostgreSQL 与本服务同机部署时,容器内的 127.0.0.1 并不指向宿主机,
# 任选其一解除注释(PG 在其他机器则删除本段,并把 .env 的 SB_DB_HOST 改为实际地址):
# 方式 a:host 网络(仅 Linux),.env 中的 127.0.0.1 原样可用
#network_mode: host
# 方式 b:host-gateway 映射,.env 中 SB_DB_HOST 改为 host.docker.internal
#extra_hosts:
# - "host.docker.internal:host-gateway"
# 从同目录 .env 注入全部环境变量(本地 Bun 运行会自动加载 .env,
# 容器内没有该文件,必须由此注入;变量清单见 .env.example)
env_file: .env
You can’t perform that action at this time.