Skip to main content

A script to run docker-compose.yml using podman

Project description

podman-compose

A script to run docker-compose.yml using podman, doing necessary mapping to make it work rootless.

Installation

Install latest stable version from PyPI:

pip install podman-compose

Or latest stable version from GitHub:

pip install https://github.com/muayyad-alsadi/podman-compose/archive/master.tar.gz

Or latest development version from GitHub:

pip install https://github.com/muayyad-alsadi/podman-compose/archive/devel.tar.gz

Mappings

  • 1podfw - create all containers in one pod (inter-container communication is done via localhost), doing port mapping in that pod.
  • 1pod - create all containers in one pod, doing port mapping in each container.
  • identity - no mapping.
  • hostnet - use host network, and inter-container communication is done via host gateway and published ports.
  • cntnet - create a container and use it via --network container:name (inter-container communication via localhost).
  • publishall - publish all ports to host (using -P) and communicate via gateway.

Examples

When testing the AWX, if you got errors just wait for db migrations to end.

Working Example

Tested on latest podman (commit 349e69.. on 2019-03-11).

By using many containers on a single pod that shares the network (services talk via localhost):

podman-compose -t 1podfw -f examples/awx3/docker-compose.yml up

Or by reusing a container network and --add-host:

podman-compose -t cntnet -f examples/awx3/docker-compose.yml up

Or by using host network and localhost works as follows:

podman-compose -t hostnet -f examples/awx3-hostnet-localhost/docker-compose.yml up

Work in progress

podman-compose -t 1pod -f examples/awx3/docker-compose.yml up

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

podman-compose-0.1.3.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

podman_compose-0.1.3-py2.py3-none-any.whl (20.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file podman-compose-0.1.3.tar.gz.

File metadata

  • Download URL: podman-compose-0.1.3.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.9

File hashes

Hashes for podman-compose-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3420f3d2496d997e305e09b08c89edf6e353e3571afda0c0eb3a0ba6f7de59d1
MD5 7772dd4def799356584cbe7e21966355
BLAKE2b-256 b06feb7b8a9b9a2f8655e43db9cc5d6b29134c2114a3b6a76dea487ed6ef3ceb

See more details on using hashes here.

File details

Details for the file podman_compose-0.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: podman_compose-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.9

File hashes

Hashes for podman_compose-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 79d7440006cdc25b0d46e7e93f7a0c35b7ad633fab9179188d6073a30670ffc7
MD5 cc9d52f4f87787119be92d985256442c
BLAKE2b-256 9ad0dd5069d7c86a2d58a81f169e7210adbdfab73d09b39d5523bce674d938b3

See more details on using hashes here.

Supported by

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