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 }}
SMNETSTUDIO
MCSP
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
MCSP
/
docker-compose.yml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
36 lines (35 loc) · 1.78 KB
main
Breadcrumbs
MCSP
/
docker-compose.yml
Copy path
Top
File metadata and controls
Code
Blame
36 lines (35 loc) · 1.78 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
services:
mcsp:
build: .
image: ghcr.io/smnetstudio/mcsp:latest
container_name: mcsp
restart: unless-stopped
ports:
- "3000:3000" # 面板
- "25565:25565" # Minecraft 实例(多实例时按需追加映射)
environment:
- PORT=3000
# - JAVA_BIN=/path/to/java # 一般无需设置:面板内可一键安装 Temurin 到 bin/java
# - MCSP_MAX_UPLOAD_MB=2048 # 单个上传文件上限
# - MCSP_MAX_EXTRACT_MB=8192 # 解压后总体积上限(防 zip bomb 占满磁盘)
# - MCSP_UPLOAD_CHUNK_MB=5 # 大文件分片上传的片大小。默认 5 是为了绕开
# # 隧道/Worker 反代常见的 ~10MB 请求体上限,
# # 前面没有这类限制时可以调大
# - MCSP_UPLOAD_CONCURRENCY=3 # 浏览器同时在途的上传请求数
# - MCSP_TRUSTED_ORIGINS=https://mc.example.com,https://panel.example.com
# # 跨站校验的额外放行来源(逗号分隔,含协议)。
# # 一般不用配:同源访问自动通过。只有当反代
# # 没透传 Host 头、或你用多个域名访问同一面板时
# # 才需要 —— 否则写操作会被拒并提示"跨站请求被拒绝"
volumes:
- mcsp-data:/app/data # 账户 / 会话 / 注册表 / 计划任务
- mcsp-instances:/app/instances # 服务端实例(世界存档)
- mcsp-backups:/app/backups # tar.gz 备份
- mcsp-bin:/app/bin # Java 运行时与穿透组件
- mcsp-logs:/app/logs
volumes:
mcsp-data:
mcsp-instances:
mcsp-backups:
mcsp-bin:
mcsp-logs:
You can’t perform that action at this time.