nginx-docker.yml

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 

posted @   walkersss  阅读(9)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· DeepSeek “源神”启动!「GitHub 热点速览」
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· NetPad:一个.NET开源、跨平台的C#编辑器
点击右上角即可分享
微信分享提示