Giter Site home page Giter Site logo

Comments (2)

muayyad-alsadi avatar muayyad-alsadi commented on July 17, 2024 1

same problem would happen if you have multiple redis/mongo replicas ..etc.
and yes, you need to customize ports, unfortunately this is not easy for example in mysql you need to edit /etc/my.cnf but in redis you can pass --port 7777, like this

version: '3'
services:
  redis:
    read_only: true
    image: redis:alpine
    command: ["redis-server", "--port 7777", "--appendonly yes", "--notify-keyspace-events", "Ex"]
    volumes:
    - ./data/redis:/data
    tmpfs:
    - /tmp
    - /var/run
    - /run

podman-compose have multiple mapping modes
the default one 1podfw and alike (1pod, hostnet, cntnet, and publishall)
the end result would be that all containers would share same network namespace
resulting that you can listen to the same port (because it's same port on same namespace)

the only one mode that does not have this problem is identity (which does not do any change, it actually run multiple containers each in it's own network namespace),
but for that to work you need sudo not rootless (which is the objective of this project),
that's why I did not implement it (if you want to use sudo podman-compose then tell me I might give it a priority)

the actual reason why rootless containers can't talk to each other is not related to podman-compose
but it's related to slirp4netns

podman uses cni to configure network.

if there is a way to do it in slirp4netns or cni or if there is a way , or if you created an issue there ping me and reopen this issue.

please close this issue if I answered your question

from podman-compose.

chpio avatar chpio commented on July 17, 2024

hmm, that's unfortunate, thanks for the reply

from podman-compose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.