这个项目是用于快速地使用Docker搭建breakwall服务(Vless+Trojan+Naiveproxy)
证书由Caddy获取,然后将证书的目录映射到宿主机给XRay使用
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
# 获取官方源
wget -P /etc/yum.repos.d/ https://download.docker.com/linux/centos/docker-ce.repo
# 安装docker ce
yum install -y docker-ce
# 启动、开机启动
systemctl start docker
systemctl enable docker
当然如果你想指定版本安装docker也是可以的
# 用下面的命令可以查看可以安装的版本
yum list docker-ce --showduplicates | sort -r
# 安装指定版本的Docker
yum install -y docker-ce-18.03.0.ce-1.el7.centos
sudo apt-get update
sudo apt-get install docker.io
或者
# 更新Ubuntu的apt源索引
sudo apt-get update
# 安装包允许apt通过HTTPS使用仓库
sudo dpkg --configure -a
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
# 添加Docker官方GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# 设置Docker稳定版仓库
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# 更新apt源索引
sudo apt-get update
# 安装最新版本Docker CE(社区版)
sudo apt-get install docker-ce
sudo curl -L https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
Centos:
yum install -y git
Ubuntu:
sudo apt-get install git
教程参考:https://zhuanlan.zhihu.com/p/73565142
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh"
chmod +x tcp.sh
./tcp.sh
git clone https://github.com/maidoudouo/XRay_Trojan_Naiveproxy_Docker
只需输入域名即可(eg: hello.com)
./OneKeySet.sh
Please input your server domain name(eg: abc.com): abc.com
Your domain name is: abc.com
-----------------------------------------------
XRay Configuration:
VLESS:
Server: abc.com
Port: 4443
UUID: 384455e7-9103-4006-8720-26ca6873b4ed
-----------------------------------------------
Trojan Configuration:
Server: abc.com
Port: 4443
Password: 26ca6873b4ed
-----------------------------------------------
NaiveProxy Configuration:
Server: abc.com
Port: 443
Username: superuser
Password: 26ca6873b4ed
-----------------------------------------------
Please run 'docker-compose up -d' to build!
Enjoy it!
同时会保存信息到info.txt中方便查阅
1、在./caddy/Caddyfile中修改Caddy修改域名和Naiveproxy的密码
2、在./xray/config.json中修改VMESS的UUID,还有修改Trojan的密码
3、在./xray/config.json中修改证书路径里面的域名(共4个地方)
docker-compose up -d
应网友需求,如果需要部署静态网站替换掉Caddy的默认页,只需要将网站放入caddy/www里面即可
Enjoy it!