DraftMK Copier Templates
Copier templates for project scaffolding with Docker Compose, MkDocs documentation, and automated configuration.
What it is
Copier templates for generating projects with Docker Compose, MkDocs documentation, and automated configuration via Jinja templates.
Available as source code.
Technical stack
- Copier: scaffolding engine based on Jinja2 with update support
- Jinja2 templates: dynamic file generation based on user answers
- Docker Compose: service configuration included in the scaffold
- MkDocs: auto-generated project documentation with Material theme
Lessons learned
Copier surpasses Cookiecutter in one key aspect: it allows updating existing projects when the template evolves. Jinja2 templates with conditionals enable generating very different configurations from a single template.
References
- GitHub Repository — jonmatum, 2024. Source code and templates.
Related content
- DevOps Practices
Set of technical and cultural practices that implement DevOps principles — from Infrastructure as Code to blameless post-mortems. The "how" behind the philosophy.
- Documentation as Code
Practice of treating documentation with the same tools and processes as code: versioned in Git, reviewed in PRs, and automatically generated when possible.