https://github.com/hmajid2301/composerisation
Converts commands between docker-compose and Docker CLI, mirror of https://gitlab.com/hmajid2301/docker-run-compose-converter
https://github.com/hmajid2301/composerisation
cli docker docker-compose python
Last synced: about 2 months ago
JSON representation
Converts commands between docker-compose and Docker CLI, mirror of https://gitlab.com/hmajid2301/docker-run-compose-converter
- Host: GitHub
- URL: https://github.com/hmajid2301/composerisation
- Owner: hmajid2301
- License: apache-2.0
- Created: 2019-02-25T18:49:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-20T15:45:44.000Z (over 2 years ago)
- Last Synced: 2025-03-18T05:34:45.256Z (over 1 year ago)
- Topics: cli, docker, docker-compose, python
- Language: Python
- Homepage:
- Size: 772 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
.. image:: https://gitlab.com/hmajid2301/composerisation/badges/master/pipeline.svg
:target: https://gitlab.com/hmajid2301/composerisation
:alt: Pipeline Status
.. image:: https://gitlab.com/hmajid2301/composerisation/badges/master/coverage.svg
:target: https://gitlab.com/hmajid2301/composerisation
:alt: Coverage
.. image:: https://img.shields.io/pypi/l/composerisation.svg
:target: https://pypi.org/project/composerisation/
:alt: PyPI Project License
.. image:: https://img.shields.io/pypi/v/composerisation.svg
:target: https://pypi.org/project/composerisation/
:alt: PyPI Project Version
composerisation
===============
A CLI tool used to convert between docker-compose to normal Docker CLI commands.
.. image:: images/logo_background.png
**Warning**: This project is still in beta.
Usage
-----
.. code-block:: bash
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 [DEBUG|INFO|ERROR|CRITICAL]
Log level for the script.
--help Show this message and exit
.. code-block:: bash
$ composerisation -i docker-compose.yml
Docker
------
You can also use the docker image to convert between docker-compose and Docker cli.
.. code-block :: bash
docker run -v ${PWD}/tests/data/1.yml:/app/docker-compose.yml composerisation
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
========
- docker-compose example taken from `here `_
- Editable code area from `wales `_
- Website inspired by `API Platform _`.