Skip to main content

format docker-compose files

Project description

Build Status image1 PyPi downloads PyPi version Docker pulls # compose_format

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


Download files

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

Source Distribution

compose_format-0.2.1.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file compose_format-0.2.1.tar.gz.

File metadata

File hashes

Hashes for compose_format-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cd3e6f6835900ec992e5da2a2232b6b234caf3faa3c4e82cf59a7f2934daeab0
MD5 17e850a77ea3a00c40afa5d17e3f1a8f
BLAKE2b-256 1a15c9d2365134aab35e54de525b3cdb1ccce73b92c28c9f2616ce83a652c42a

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