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.
Source Distribution
File details
Details for the file compose_format-0.2.1.tar.gz.
File metadata
- Download URL: compose_format-0.2.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd3e6f6835900ec992e5da2a2232b6b234caf3faa3c4e82cf59a7f2934daeab0
|
|
| MD5 |
17e850a77ea3a00c40afa5d17e3f1a8f
|
|
| BLAKE2b-256 |
1a15c9d2365134aab35e54de525b3cdb1ccce73b92c28c9f2616ce83a652c42a
|