mirror of
https://github.com/containers/podman-compose.git
synced 2025-01-14 01:48:49 +01:00
working 1podfw
This commit is contained in:
parent
20474eb3fc
commit
f6f711a82a
25
README.md
25
README.md
@ -18,21 +18,34 @@ it's still underdevelopment and does not work yet.
|
||||
|
||||
## Examples
|
||||
|
||||
When testing the `AWX`, if you got errors just wait for db migrations to end.
|
||||
|
||||
### Working Example
|
||||
|
||||
Using host network and localhost works as in
|
||||
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.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
|
||||
./podman-compose.py -t 1podfw -f examples/awx/docker-compose.yml up
|
||||
```
|
||||
|
||||
Or by reusing a container network and `--add-host`
|
||||
|
||||
```
|
||||
$ ./podman-compose.py -t cntnet -f examples/awx/docker-compose.yml up
|
||||
```
|
||||
|
||||
Or by using host network and localhost works as in
|
||||
|
||||
```
|
||||
$ ./podman-compose.py -t hostnet -f examples/awx-hostnet-localhost/docker-compose.yml up
|
||||
```
|
||||
|
||||
### in progress work
|
||||
|
||||
|
||||
```
|
||||
./podman-compose.py -t cntnet -f examples/awx/docker-compose.yml up
|
||||
./podman-compose.py -t 1pod -f examples/awx/docker-compose.yml up
|
||||
```
|
||||
|
||||
|
@ -295,7 +295,7 @@ def up(project_name, dirname, pods, containers):
|
||||
args=[
|
||||
"podman", "pod", "create",
|
||||
"--name={}".format(pod["name"]),
|
||||
"--share", "cgroup,ipc",
|
||||
"--share", "net",
|
||||
]
|
||||
ports = pod.get("ports") or []
|
||||
for i in ports:
|
||||
|
Loading…
Reference in New Issue
Block a user