惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
V
V2EX
Jina AI
Jina AI
爱范儿
爱范儿
M
MIT News - Artificial intelligence
量子位
L
LangChain Blog
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
腾讯CDC
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
宝玉的分享
宝玉的分享
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss

博客园 - 荷楠仁

linux监控 NAS存储当IIS虚拟机目录 redis常用命令 linux防火墙开端口 sqlserver常见命令 /var/lib/docker/overlay2/过大 redhat linux设置开机自动启动 vmware 安装redhat7.9无法使用vi vmware扩展虚拟机磁盘 oracle linux 6.8设置时区 linux配制nfs linux配制iscsi vmware nat 设置静态ip linux导入JAVA_HOME不生效 windows后台运行java进程 oracle EF core hello world ubuntu找不到source命令 Java单例模式 linux查看当前文件夹下文件和文件夹大小 windows查看端口被谁占用
nginx配docker-compose
荷楠仁 · 2026-04-11 · via 博客园 - 荷楠仁

先复制出来配制

      docker create --name mynginx docker.xuanyuan.run/library/nginx:alpine3.23 
      docker container cp mynginx:/etc/nginx .
      docker container stop mynginx

然后用docker-compose把配制挂载出来

version: '2.1'
services:
  tag:
    image: docker.xuanyuan.run/library/nginx:alpine3.23 
    container_name: local-nginx
    network_mode: "host"
    volumes:
      - /root/docker-compose/nginx/nginx:/etc/nginx
      - /root/project/client1:/usr/share/nginx/html
      - /root/logs/nginx:/var/log/nginx