mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-22 07:53:16 +01:00
a script to run docker-compose.yml using podman
examples | ||
.gitignore | ||
LICENSE | ||
podman-compose.py | ||
README.md |
PodMan-Compose
A script to run docker-compose.yml
using podman,
doing necessary mapping to make it work rootless.
NOTE
it's still underdevelopment and does not work yet.
Mappings
1podfw
- create all containers in one pod (inter-container communication is done vialocalhost
), doing port mapping in that pod1pod
- create all containers in one pod, doing port mapping in each containeridentity
- no mappinghostnet
- use host network, and inter-container communication is done via host gateway and published portscntnet
- create a container and use it via--network container:name
(inter-container communication vialocalhost
)publishall
- publish all ports to host (using-P
) and communicate via gateway
Examples
Working Example
Using host network and localhost works as in
$ ./podman-compose.py -t hostnet -f examples/awx-working/docker-compose.yml up
$ # wait for a while, because there is not dependency then
$ podman restart awx-working_awx_task_1
$ podman restart awx-working_awx_web_1
in progress work
./podman-compose.py -t cntnet -f examples/awx/docker-compose.yml up