Comments (2)
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.
hmm, that's unfortunate, thanks for the reply
from podman-compose.
Related Issues (20)
- Building or Running a Service Fails Without Explicit Profile
- Environment variables defined in compose file are included in image build
- Upgrade `podman-compose` to the latest version in pip and Homebrew HOT 1
- Unable to start containers with userns on v1.1.0 HOT 2
- podman multiple erros starting container HOT 1
- podman-compose 1.1.0 no longer loads env file in the same directory with compose.yaml when using `-f` HOT 1
- Podman-compose mount volume incorrectly under Windows with podman machine on WSL
- Required variable syntax ("${BAR:?BAR variable missing}") not resolved when not in quotation marks since v1.1.0 (in command)
- multiple include cannot be done
- Wrongly relative path by include HOT 1
- Update the pypi version to 1.1.0 because the 1.0.6 version does not support the Compose specification for env_file HOT 6
- Codespelling tests no longer work HOT 1
- podman-compose did not process ipvlan_mode option in the docker-compose.
- Overlay Volume Mounts not working
- TypeError in podman_compose.py container_to_args HOT 1
- missing or incorrect use of --in-pod and pod-args HOT 8
- Make PodmanCompose.prefer_volume_over_mount configurable
- When no network is specified and using network_mode: host, it will use unexpected default network
- Repeated wait time options when using `podman-compose stop` HOT 1
- Typo in error message for x-podman.gidmap HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from podman-compose.