# docker-nginx-confd **Repository Path**: lablelan/docker-nginx-confd ## Basic Information - **Project Name**: docker-nginx-confd - **Description**: nginx+confd+etcd+etcdkeeper - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-05 - **Last Updated**: 2022-03-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README dockerfile生成nginx+confd镜像 ``` confd: https://github.com/kelseyhightower/confd/releases/tag/v0.16.0 nginx: https://hub.docker.com/_/nginx wait-for(docker-compose配合配置中心服务使用): https://github.com/Eficode/wait-for ``` 目录结构 ``` . ├── confd-0.16.0-linux-amd64 # confd二进制文件 ├── dockerfile # 生成镜像dockerfile ├── readme.md ├── startup # docker-compose启动目录 │   ├── conf.d # nginx的conf.d目录 │   │   └── myapp.conf # etcd生成的nginx配置 │   ├── confd.toml # confd配置 │   ├── docker-compose.yml │   ├── myapp-nginx.toml # 关联nginx模版及etcd配置文件(映射路径需要符合/etc/confd/{conf.d,templates}约定) │   ├── nginx.conf # nginx配置 │   └── nginx.tmpl # /etc/nginx/conf.d/myapp.conf配置模版 └── wait-for ``` [参考文章](https://www.huweihuang.com/linux-notes/tools/confd-usage.html)