docker部署netmaker1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950mkdir netmakercd netmakerwget https://github.com/gravitl/netmaker/raw/master/compose/docker-compose.ymlsed -i "s/80:80/10080:80/g" ./docker-compose.ymlsed -i "s/443:443/10443:443/g" ./docker-compose.ymlcat << EOF > ./netmaker.envSERVER_IMAGE_TAG=latestUI_IMAGE_TAG=latestSERVER_HOST=45.155.223.147NM_DOMAIN=nm.dreamchaser-luzeyu.cnEOFcat << EOF > ./Caddyfile{ email yydluzeyu@gmail.com}# Dashboardhttps://dashboard.nm.dreamchaser-luzeyu.cn { # Apply basic security headers header { # Enable cross origin access to *.NETMAKER_BASE_DOMAIN Access-Control-Allow-Origin *.nm.dreamchaser-luzeyu.cn # Enable HTTP Strict Transport Security (HSTS) Strict-Transport-Security "max-age=31536000;" # Enable cross-site filter (XSS) and tell browser to block detected attacks X-XSS-Protection "1; mode=block" # Disallow the site to be rendered within a frame on a foreign domain (clickjacking protection) X-Frame-Options "SAMEORIGIN" # Prevent search engines from indexing X-Robots-Tag "none" # Remove the server name -Server } reverse_proxy http://netmaker-ui}# APIhttps://api.nm.dreamchaser-luzeyu.cn { reverse_proxy http://netmaker:8081}# MQwss://broker.nm.dreamchaser-luzeyu.cn { reverse_proxy ws://mq:8883}EOF# 将*.nm.dreamchaser-luzeyu.cn代理到10080和10443docker-compose -f ./docker-compose.yml 123#sudo wget -qO /root/nm-quick.sh https://raw.githubusercontent.com/gravitl/netmaker/master/scripts/nm-quick.sh && sudo chmod +x /root/nm-quick.sh && sudo /root/nm-quick.sh/root/nm-quick.sh -d