更新环境
apt update -y && apt install -y curl socat wget sudo
BBR PLUS 四合一脚本
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
安装 Docker
curl -fsSL https://get.docker.com | sh
curl -L "https://github.com/docker/compose/releases/download/v2.18.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
创建目录并进入目录
cd /home/
mkdir npm
cd npm
创建docker-compose.yml的文件
nano docker-compose.yml
复制代码进入文件中
version: '3.8'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
\- '80:80'
\- '81:81'
\- '443:443'
volumes:
\- ./data:/data
\- ./letsencrypt:/etc/letsencrypt
crl+x 然后y 然后回车退出编辑模式
注意:80 和 443 端口不能修改
启动
docker-compose up -d
默认用户名密码
Email: [email protected]
Password: changeme
标签:compose,80,tcp,Nginx,sh,Proxy,Docker,com,docker From: https://www.cnblogs.com/an-shiguang/p/17897179.html