Mac、Win 系统一键快速搭建部署集成环境 (Docker、Docker-compose、宝塔)
使用操作
下载 docker 软件
下载地址参考: http://get.daocloud.io/
快速开始
苹果芯片请切换到 m1 分支运行
如遇到下载失败,请参考: https://gitclone.com/
git clone https://github.com/surest-sky/docker-compose-baota.git docker-compose-baota
cd docker-compose-baota
docker-compose up -d
配置环境
打开 .env 文件
修改里面的项目目录地址,这个地址会映射到 对应服务器 wwwroot 位置
命令
1、启动
# 启动并后台运行 `-d` 表示后台运行
docker-compose up -d
2、重启
# 重启
docker-compose restart
3、指定某个容器重启
# container_name 表示 yml 中的容器名称
docker-compose container_name up -d
# 这里可以这样使用
docker-compose bt up -d
4、进入容器环境
# 查看当前容器ID
➜ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
19cfc43b7a45 pch18/baota "/bin/sh -c /entrypo…" About an hour ago Up About an hour (healthy) 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:888->888/tcp, 0.0.0.0:3306->3306/tcp, 20-21/tcp, 0.0.0.0:8888->8888/tcp bt
# 进入容器
docker-compose exec 19cfc43b7a45 bash
常见问题
- 端口被占用
请检查本地端口是否被使用, 当前容器使用的端口见 yml 文件
...
ports:
- "80:80"
- "443:443"
- "8888:8888"
- "888:888"
- "3306:3306"
- 容器下载失败
请检查当前docker容器,配置的是否为国内地址
{
"experimental": false,
"features": {
"buildkit": true
},
"registry-mirrors": [
"https://5zpts8zx.mirror.aliyuncs.com"
]
}
- 宝塔配置网站域名失败或者一直加载中
可能是由于你的项目文件太大、文件太多的原因 可以创建一个空文件夹,然后再设置域名到这个目录下 再修改配置文件
其他
由此项目,你可以自定义添加一些其他的服务,如 elk, 等等
一键快速搭建集成环境
Project Details
- surest-sky/docker-compose-baota
- MIT License
- Last Updated: 2/3/2024
Recomended MCP Servers
Generate images using gemini
MCP server for OpenRouter providing text chat and image analysis tools
Model Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Physical Devices)
An MCP server capable of executing any terminal command securely and efficiently
Two Truths and a Twist: The world's first Model Context Protocol game
An FFMPEG powered MCP server for basic Video and Audio editing
MCP server for enabling LLM applications to perform deep research via the MCP protocol
Korea Law Tool
A MCP (model context protocol) server that gives the LLM access to and knowledge about relational databases like...
A Model Context Protocol server that provides read-only access to PostgreSQL databases with enhanced multi-schema support.





