Sign inSign up

hmajid2301/composerisation

By hmajid2301

•Updated over 5 years ago

A tool used to convert between docker-compose and Docker cli syntax.

Image
0

1.2K

hmajid2301/composerisation repository overview

Pipeline Status

Coverage

PyPI Project License

PyPI Project Version

⁠composerisation

A CLI tool used to convert between docker-compose to normal Docker CLI commands.

image

Warning: This project is still in beta.

⁠Demo

Instead of dowloading the tool you can use the demo website⁠. Simply paste your docker-compose.yml file and press convert then copy the contents from the second input box.

Warning: The website is only for demo purposes, the code isn't particularly clean. This is not a web service but a CLI tool

⁠Usage

pip install composerisation
composerisation --help

Usage: composerisation [OPTIONS]

Converts docker-compose files to Docker comamnds.

Options:
-i, --input-file TEXT Path to file to convert from docker-compose
to Docker. [required]

-l, --log-level [DEBUGERROR|CRITICAL]
Log level for the script.

--help Show this message and exit

$ composerisation -i docker-compose.yml

⁠Docker

You can also use the docker image to convert between docker-compose and Docker cli.

⁠Supported Command

We support all commands specified in the docker-compose reference file version 3.8 here⁠. Besides from the config options defined below.

⁠Services

Unsupported config options:

  • configs
  • credential_spec
  • depends_on
  • deploy
  • external_links
  • healthcheck
  • secrets
  • volume (long syntax)

⁠Networks

Unsupported config options:

  • enable_ipv6

⁠Future Features

  • Convert between Docker cli commands to docker-compose
  • Add docker pull, when using images

⁠Changelog

You can find the changelog here⁠.

⁠Appendix

Tag summary

Content type

Image

Digest

Size

33.5 MB

Last updated

over 5 years ago

docker pull hmajid2301/composerisation