version: '3'
services:
nginx:
image: nginx:latest
container_name: nginx1
restart: always
ports:
- "80:80"
- "7080:7080"
- "1180:1180"
volumes:
- /usr/local/nginx/html:/usr/share/nginx/html rw
- /usr/local/nginx/nginx.conf:/etc/nginx/nginx.conf rw
#network_mode: "host"
vi /etc/docker/daemon.json
{
"max-concurrent-downloads": 10,
"max-concurrent-uploads": 5,
"default-shm-size": "1G",
"debug": true,
"experimental": false,
"registry-mirrors": [ "https://ys4vhbmg.mirror.aliyuncs.com",
"https://9cpn8tt6.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"https://x9r52uz5.mirror.aliyuncs.com",
"https://dockerhub.icu",
"https://docker.chenby.cn",
"https://docker.1panel.live",
"https://docker.awsl9527.cn",
"https://docker.anyhub.us.kg",
"https://dhub.kubesre.xyz",
"https://docker.m.daocloud.io",
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn"
],
"insecure-registries":["172.16.0.11:18888","https://hub-reg.abcde.com"]
}
systemctl daemon-reload
systemctl restart docker
标签:aliyuncs,cn,nginx,https,docker,com,yml From: https://www.cnblogs.com/walkersss/p/18605511