trying create multiple host networks using podman-compose seem I'm missing something
podman-compose.yml
version: "2"
services:
qx-cp1:asterisk:18
image:
network_mode: "host"
restart: always
volumes:
- ./conf_sync:/etc/asterisk
qx-cp2:
image:asterisk:18
network_mode: "host"
restart: always
volumes:
- ./conf_sync2:/etc/asterisk
qx-node1:
image: testimage::2.0.5-node18
restart: always
labels:
com.callqx.type: "sip"
depends_on:
- "qx-cp1"
env_file:
- .env
environment:
- "LOG_LEVEL=debug"
- "QX_CP_ADDRESS=0.0.0.0"
- "QX_CP_PORT=1024"
command: npm run start:callController
volumes:
- ./conf_sync:/etc/asterisk
qx-node2:
image: testimage:2.0.5-node18
restart: always
labels:
com.callqx.type: "sip"
depends_on:
- "qx-cp2"
env_file:
- .env
environment:
- "LOG_LEVEL=debug"
- "QX_CP_ADDRESS=0.0.0.0"
- "QX_CP_PORT=1025"
command: npm run start:callController
volumes:
holdyr-media:
dbdata:
conf:
qx-cp-conf:
qx-sounds:`
['podman', '--version', '']
using podman version: 4.0.2
podman-composer version 1.0.3
podman --version
podman version 4.0.2
['podman', 'network', 'exists', 'asterisk_default']
Error: cannot set multiple networks without bridge network mode, selected mode host: invalid argument
exit code: 125
I bumped into the same issue. It seem this is already fixed but haven´t made into a new release yet. See: https://github.com/containers/podman-compose/issues/406#issuecomment-1015256254
not sure how to create multiple host network
Use latest devel branch as in the readme
I'm not able to find any relevant information on read me can anyone help me in this situation how to create multiple host network in podman using podman-compose ?
pip3 install https://github.com/containers/podman-compose/archive/devel.tar.gz
or
pip3 install --user https://github.com/containers/podman-compose/archive/devel.tar.gz
This is a major breakage of the compose specification. When will this be release officially? It's been over a year since the last release.