mirror of
https://github.com/containers/podman-compose.git
synced 2025-05-31 07:26:13 +02:00
Document existence of x-podman.interface_name
Signed-off-by: Jörn Hirschfeld <joern@hirschfeld.tech>
This commit is contained in:
parent
1cdc9e6552
commit
b1eb558b41
@ -86,7 +86,7 @@ networks:
|
|||||||
- subnet: "192.168.1.0/24"
|
- subnet: "192.168.1.0/24"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
webserver
|
webserver:
|
||||||
image: "busybox"
|
image: "busybox"
|
||||||
command: ["/bin/busybox", "httpd", "-f", "-h", "/etc", "-p", "8001"]
|
command: ["/bin/busybox", "httpd", "-f", "-h", "/etc", "-p", "8001"]
|
||||||
networks:
|
networks:
|
||||||
@ -98,6 +98,10 @@ services:
|
|||||||
mac_address: "02:bb:bb:bb:bb:bb" # mac_address is supported
|
mac_address: "02:bb:bb:bb:bb:bb" # mac_address is supported
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Per-network interface name
|
||||||
|
|
||||||
|
Using `x-podman.interface_name` within a containers network config you can specify the interface name inside the container.
|
||||||
|
|
||||||
## Podman-specific network modes
|
## Podman-specific network modes
|
||||||
|
|
||||||
Generic docker-compose supports the following values for `network-mode` for a container:
|
Generic docker-compose supports the following values for `network-mode` for a container:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user