podman-compose icon indicating copy to clipboard operation
podman-compose copied to clipboard

trying create multiple host networks using podman-compose seem I'm missing something

Open Shreyanshharsora opened this issue 3 years ago • 5 comments

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

Shreyanshharsora avatar Jul 25 '22 16:07 Shreyanshharsora

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

vnen avatar Jul 25 '22 16:07 vnen

not sure how to create multiple host network

Shreyanshharsora avatar Jul 25 '22 16:07 Shreyanshharsora

Use latest devel branch as in the readme

muayyad-alsadi avatar Jul 25 '22 18:07 muayyad-alsadi

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 ?

Shreyanshharsora avatar Jul 25 '22 18:07 Shreyanshharsora

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

muayyad-alsadi avatar Jul 25 '22 18:07 muayyad-alsadi

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.

gauntl3t12 avatar Mar 16 '23 12:03 gauntl3t12