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.1.6.tar.gz (4.5 kB view hashes)

Uploaded Source

Supported by

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