Convert docker-compose.yml to plantuml with atom:markdown-preview-enhanced using python
- Simplicity
- Easy to develop
- Flexibility
- Function based microservices
- Porting to serverless systems
- Function based microservices
Must define service settings below in docker-compose.yml
- Correspondence table
| Docker-compose v3 | Plantuml component diagram |
|---|---|
| services | components |
| depends_on | links |
| networks | package |
| image | component in cloud |
| ports | ports properties in component |
| aliases | aliases properties in component |
Convert below to allowed
| Docker-compose v3 | Plantuml component diagram |
|---|---|
| "-" | "_" |
- Ubuntu 16.04
$ apt-get update && \
apt-get install -y atom && \
apm install markdown-preview-enhanced && \
apt-get install -y plantuml && \
apt-get install python-pip && \
pip install pyyaml
- Command
$ python dc2uml.py fullpath/inputfile.yml fullpath/outputfile.md
- See an examples folder

- Refactoring
- Redefine Meta processes
- Repeated strings to outside
- No dependency on requirements version
- Support
- Exception cases
- Other service settings
- Dockerfile
- Other plantuml diagrams
- Other text-based uml tools
- Official plantuml format
- Redefine correspondence
- Monolithic to microservices
- compose_plantuml
MIT