Skip to main content

Dockumentor is a Python utility that automates the generation of detailed documentation for Docker Compose projects. It interprets Docker Compose configurations to produce visual diagrams and markdown documentation, leveraging Mermaid diagrams and Jinja2 templates to provide clear and customizable representations of service architectures. Ideal for development teams and educators, Dockumentor streamlines the process of maintaining accurate and visual documentation for Docker environments.

Project description

Dockumentor: Docker Compose Documentation Generator

Dockumentor is a tool designed to automatically generate comprehensive documentation for Docker Compose configurations.

Features:

  • Mermaid Diagram Generation: Automatically generate Mermaid diagrams that visually map the service relationships and network configurations.
  • Sankey Diagrams for Network and Dependency Insights: Visualize network ports and service dependencies through Sankey diagrams to better understand internal and external bindings and service interactions.
  • Template-based Documentation: Customize documentation output using Jinja2 templates, allowing for flexibility in how information is presented.
  • CLI Support: Comes with a command-line interface to easily generate and update documentation directly from the terminal.
  • Configurable: Easily adaptable to include more detailed information such as volume mappings, environment variables, and custom commands through a simple YAML configuration.

Ideal for:

  • Developers looking to automate the documentation of their Docker environments.
  • Teams requiring consistent and updated documentation for development, testing, and production setups.
  • Educators and trainers who provide tutorials or workshops on Docker and need clear, visual representations of complex configurations.

By simplifying the documentation process, Dockumentor helps you focus more on development and less on the manual effort of maintaining up-to-date documentation of your Docker setups.

Installation

To install Dockumentor, you can use pip, the Python package manager. Make sure you have Python and pip installed on your system. Then run the following command:

pip install dockumentor

Usage

Once installed, you can use the Dockumentor CLI to generate a README for your project with Docker Compose.

Generating Documentation

To generate a README for a project with a Docker Compose configuration, navigate to your project directory and run the following command:

dockumentor -c path/to/docker-compose.yml -o README.md
  • -c: Specify the path to your docker-compose.yml file.
  • --output: Specify the path to the output file (e.g., README.md). This is where the generated documentation will be written.

Example Command

dockumentor -c ./docker-compose.yml -o ./README.md

Appending to Existing Documentation

If you want to append the generated documentation to an existing README file, use the --append option:

dockumentor -c ./docker-compose.yml -o ./README.md --append

This will insert the generated documentation within specific markers in the existing README file, ensuring that the new content is added without overwriting the existing content.

Customizing the Template

Dockumentor uses Jinja2 templates to format the generated documentation. You can customize the template to match your project's documentation style. Create a custom template file and specify its path using the --template option.

Example Command with Custom Template

dockumentor -c ./docker-compose.yml -t ./templates/dockumentor_compose.md -o ./README.md

This command specifies a custom template for generating the documentation. If you don't specify a template, Dockumentor will use a default template.

Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dockumentor-0.1.3.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dockumentor-0.1.3-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file dockumentor-0.1.3.tar.gz.

File metadata

  • Download URL: dockumentor-0.1.3.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.14.4 Linux/6.19.11-arch1-1

File hashes

Hashes for dockumentor-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1125c787685f8406697fa051e4c77dc740904768c3b8a1a51da50aea6fbf0e8b
MD5 9052341d727a0ddbbb0ea8d69215a288
BLAKE2b-256 ffef98769b0d7575350fe0a65883ab23bda8b5c28f601de09a35c75ae8041aee

See more details on using hashes here.

File details

Details for the file dockumentor-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: dockumentor-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.14.4 Linux/6.19.11-arch1-1

File hashes

Hashes for dockumentor-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0fa1724ea61fd10d943c2b04723b4d15999782ca99adf69b2c3c29ddd1ef99f7
MD5 8c9617fe1bd09b04007c12f49025a717
BLAKE2b-256 9f6213ab32b7cd7f547f0aa4e0d8c8a91a8380d3e51c5cec14d5a88fbe65303d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page