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 }}
guoxpeng
https_ssl
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
https_ssl
/
docker-compose.host.yml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
38 lines (38 loc) · 2.05 KB
main
Breadcrumbs
https_ssl
/
docker-compose.host.yml
Copy path
Top
File metadata and controls
Code
Blame
38 lines (38 loc) · 2.05 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
36
37
38
# 兼容文件 —— 保留它只是为了让已有的部署脚本和命令
# (docker compose -f docker-compose.host.yml ...)继续可用。
#
# v1.4.0 时 host 模式还是可选项,必须显式指定这个文件才能启用;
# 现在 host 是唯一模式,直接 docker compose up -d 即可。本文件将来会移除,
# 新写的命令请不要再引用它。
#
# ⚠️ 本文件刻意保持「从源码构建」且不设 QILIN_USERS_FILE ——
# 某些已有部署(容器内 /app/users.json)依赖这个行为,改动会破坏它们的
# 用户表备份/还原流程。新部署请用 docker-compose.yml 或
# docker-compose.build.yml,那两个会把用户表落到数据卷里。
#
# 说明:host 网络模式下容器直接使用宿主机网络,nginx 监听的端口就是宿主机端口,
# 面板里新增反向代理时端口填了即生效,不用改 compose、也不用重建容器。
# 代价是失去网络隔离,且仅 Linux 支持。
services:
qilin-ssl:
container_name: qilin_ssl
build: .
network_mode: host
volumes:
- ./data/ca:/app/ca # 根证书
- ./data/certs:/app/certs # 签发的证书
- ./data/uploads:/app/uploads # 上传文件
- ./data/proxy:/app/proxy # 反向代理配置与证书
environment:
- QILIN_PROXY_DIR=/app/proxy
# host 模式没有端口映射,面板端口由这里决定(默认 2002)。
# 想换端口:在 .env 里写 QILIN_PORT=你的端口
- QILIN_PORT=${QILIN_PORT:-2002}
# 管理员 admin 的初始密码,默认 admin。
# 想换成别的:在 .env 里写 QILIN_ADMIN_PASSWORD=你的密码
- QILIN_ADMIN_PASSWORD=${QILIN_ADMIN_PASSWORD:-admin}
# 会话签名密钥;不设置时每次启动随机生成,重启会导致所有登录失效
- QILIN_SECRET_KEY=${QILIN_SECRET_KEY:-}
# 面板经 HTTPS 暴露时置 1,会话 Cookie 仅在 HTTPS 下发送
- QILIN_COOKIE_SECURE=${QILIN_COOKIE_SECURE:-0}
restart: always
You can’t perform that action at this time.