1、安装Docker
#CentOS 7、Debian、Ubuntu
curl -sSL https://get.docker.com/ | sh
systemctl start docker
systemctl enable docker
2、安装Docker Compose
curl -SL https://github.com/docker/compose/releases/download/v2.15.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
3、安装Proxyer
# 1. 下载docker-compose.yml配置文件
curl -sSL https://gitee.com/guangleihe/proxyer/raw/master/docker-compose.yaml -o docker-compose.yml
curl -L https://gitee.com/kehuafu/proxyer/raw/master/docker-compose.yaml -o docker-compose.yml
# 2. 设置对外访问IP或者域名,启动服务
PROXYER_PUBLIC_HOST={你的公网IP地址或者域名} docker-compose up -d