标签:svc man work 火墙 trie worker key conf net
apt install docker.io
---------------------
--配置加速器、私有仓库地址
---------------------
mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-‘EOF‘
{
"registry-mirrors": ["https://plapxez2.mirror.aliyuncs.com"],
"insecure-registries":["docker.codedev.top:88"]
}
EOF
systemctl daemon-reload
systemctl restart docker
ufw disable
mkdir -p /home/deploy/log
mkdir -p /home/deploy/upload/html
mkdir -p /home/deploy/upload/img
mkdir -p /home/conf/ng/cert
--------------------上传证书文件及ng配置信息
sshpass -p "TEL.lz@189" scp -P 6025 /Users/mark/work/git/sgmw/svc/docker/ng/nginx.conf root@192.168.0.77:/home/conf/ng/nginx.conf \
sshpass -p "TEL.lz@189" scp -P 6025 /Users/mark/work/git/sgmw/svc/docker/ng/default.conf root@192.168.0.77:/home/conf/ng/default.conf \
sshpass -p "TEL.lz@189" scp -P 6025 /Users/mark/work/git/sgmw/svc/docker/ng/cert/test.sgmwsales.com_chain.crt root@192.168.0.77:/home/conf/ng/cert/test.sgmwsales.com_chain.crt \
sshpass -p "TEL.lz@189" scp -P 6025 /Users/mark/work/git/sgmw/svc/docker/ng/cert/test.sgmwsales.com_private.key root@192.168.0.77:/home/conf/ng/cert/test.sgmwsales.com_private.key \
-------------------------
--Manager、worker上分别运行,谨慎执行
-------------------------
docker swarm init
docker network create -d overlay wl-network
------------
--防火墙
------------
ufw disable
标签:svc man work 火墙 trie worker key conf net
原文地址:https://www.cnblogs.com/kuailewangzi1212/p/10714158.html