format docker-compose files
Project description
Format docker-compose files.
Note that this small utility is just valid until docker-compose has itself a format functionality. Currently docker-compose just support the “config” switch. Which joins multiple compose files and print them in a machine readable form.
Usage
Via Python
Install it via: pip3 install compose_format
After that use it like
compose_format compose-format.yml this will print the formatted compose file to stdout. To let it replace the compose file add --replace.
Via Docker
Use it like: cat docker-compose.yml | docker run -i funkwerk/compose_format
Features
Support for Version 2 and Version 1.
Orders Services, Volumes, Networks
Orders Definitions
Orders Port and Volume Lists
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.