docker-gen
« Back to VersTracker
Description:
Generate files from docker container metadata
Type: Formula  |  Latest Version: 0.16.1@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Devops
Tags: docker automation devops templates configuration
Install: brew install docker-gen
About:
Docker-Gen is a command-line tool that reads Docker container metadata and generates configuration files from templates. It watches the Docker daemon for container start and stop events, allowing for dynamic updates to configuration files like nginx configs or HAProxy backends. This enables automated infrastructure management without the need to manually edit config files.
Key Features:
  • Template-based file generation using Go templates
  • Real-time monitoring of Docker container events
  • Supports custom templates for any configuration format
  • Can trigger reloads or restarts of services upon file generation
Use Cases:
  • Automatically generating reverse proxy configurations (e.g., nginx, Traefik) for new containers
  • Updating load balancer upstream server lists dynamically
  • Generating configuration files for monitoring or logging agents based on running containers
Alternatives:
  • confd – Confd generally targets key-value stores like etcd or Consul, whereas docker-gen sources data directly from the Docker API.
  • Templating engines (Jinja2/Ansible) – Static generators like Ansible are typically run on a schedule, while docker-gen provides event-driven, real-time updates.
License: MIT
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Oct 10, 2025 12:01pm 0 VERSION_BUMP 387acdf9
Nov 2, 2024 6:32pm 0 VERSION_BUMP 801fe261