docker-gen 是一个配置生成器,它使用从 Docker 容器获取的元数据将文本模板渲染为文件。它作为一个服务发现工具和基于模板的编排器,将容器状态和环境变量映射到宿主机本地存储的特定目标路径。
jwilder/docker-gen 的主要功能包括:Configuration File Generators, Template-Based Code Generators, Container Metadata Retrieval, Container Metadata Configuration Generators, Service Discovery, Container-Driven Rendering, Dynamic Reverse Proxies, Sequential Multi-Job Template Executors。
jwilder/docker-gen 的开源替代品包括: nginx-proxy/docker-gen — docker-gen is a general-purpose configuration generator that produces configuration files by applying Go templates to… masterminds/sprig — Sprig is a comprehensive library of helper functions designed to extend the Go text template engine. It provides a… dhall-lang/dhall-lang — Dhall is a type-safe configuration language designed to create programmable configuration files that are guaranteed to… lucaslorentz/caddy-docker-proxy — caddy-docker-proxy is a dynamic HTTP reverse proxy and Docker network ingress controller that automatically generates… expressjs/generator — This project is a command-line utility designed to automate the initialization and scaffolding of web applications. It… valentinxxx/nginxconfig.io — nginxconfig.io is a web-based NGINX configuration generator designed to create and optimize server configuration files…
docker-gen is a general-purpose configuration generator that produces configuration files by applying Go templates to live Docker container metadata. It generates dynamic configuration for reverse proxies, log forwarding, log rotation, and other service files based on real-time container state. The tool watches Docker container lifecycle events—such as start, stop, and die—and automatically re-renders templates each time a change occurs. It supports multiple template jobs defined in a configuration file, executing them sequentially, and can send Unix signals or run commands after regeneration
Sprig is a comprehensive library of helper functions designed to extend the Go text template engine. It provides a wide array of custom functions that can be injected into the engine to enable complex data manipulation and logic directly within templates. The project offers specialized capabilities for cryptography, including the generation of private keys, X.509 certificates, and secure password hashes. It also includes advanced logic extensions for semantic versioning comparison, ternary evaluations, and the resolution of environment variables from the host operating system. The library co
Dhall is a type-safe configuration language designed to create programmable configuration files that are guaranteed to terminate. It is a non-Turing-complete language that uses a strict type system to ensure correctness and prevent infinite loops during evaluation. The project functions as a deterministic configuration engine and marshalling tool, converting programmable expressions into static formats such as JSON, YAML, and Bash. It distinguishes itself through a focus on security and integrity, using semantic hashing to pin remote imports and enforcing origin policies to prevent data exfil
caddy-docker-proxy is a dynamic HTTP reverse proxy and Docker network ingress controller that automatically generates routing configurations by reading labels from Docker containers. It serves as a service discovery tool that detects container IP addresses in real time to route incoming web traffic to the correct backend targets. The project functions as a distributed proxy orchestrator, capable of pushing generated configurations from a central controller to multiple remote server instances to scale request handling. It automates the issuance and renewal of TLS security certificates for prox