My ultimate Docker Compose template toolkit: Boilerplates v2
Video write-up
In this video, I demonstrate my brand-new open-source CLI tool boilerplates, which generate customizable Docker Compose templates with interactive and non-interactive workflows. We cover listing and searching the template library, setting user defaults, handling secrets, and generating Traefik, Authentik, and Portainer stacks.
Install Boilerplates v2
curl -fsSL https://raw.githubusercontent.com/christianlempa/boilerplates/main/scripts/install.sh | bash
boilerplates --version
Manage the template library
boilerplates repo --help
boilerplates repo update
boilerplates list
boilerplates search <template_id>
boilerplates compose --help
Inspect a template
boilerplates show portainer
Generate a Docker Compose stack (Portainer example)
boilerplates generate portainer
boilerplates generate portainer --no-interactive \
--var traefik_enabled=true \
--var traefik_network=proxy \
--var container_timezone=Europe/Berlin
Set user default variables
If you repeat the same options (e.g., Traefik network, timezone), set user defaults once:
python3 -m cli compose defaults --help
python3 -m cli compose defaults set traefik_enabled=true
python3 -m cli compose defaults set traefik_network=proxy
python3 -m cli compose defaults set container_timezone=Europe/Berlin
Defaults are applied to future generations and can be overridden per run with –var.