-
Hey, so I'm running Currently I have the issue that I cannot communicate with the same containers in a pod via hostname. Also the default /etc/resolv.conf from the containers has no internet access, but if I modify the nameserver (like to 1.1.1.1) the container can communicate outside. Now I need to figure out how to have a container that both can communicate with another one in the same pod but also has internet access. Please see the attached files and let me know if something is missing. Network:
Specialities: Edit: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Of course I've read https://github.com/containers/podman/blob/main/docs/tutorials/basic_networking.md, https://blog.podman.io/2024/10/podman-5-3-changes-for-improved-networking-experience-with-pasta/ and https://blog.podman.io/2024/03/podman-5-0-has-been-released/. But even uncommenting the |
Beta Was this translation helpful? Give feedback.
-
Closing as I switched to version: '3.1'
services:
proxy:
image: docker.io/alpine
command: sleep inf
network_mode: 'pasta'
ports:
- 8082:80
application:
image: docker.io/wordpress:6.7
volumes:
- /data/cnt/appdata/wordpress/site:/var/www/html
env_file: environment.env
network_mode: 'service:proxy'
database:
image: docker.io/mysql:8.0
volumes:
- /data/cnt/appdata/wordpress/database:/var/lib/mysql
env_file: environment.env
network_mode: 'service:proxy' |
Beta Was this translation helpful? Give feedback.
Closing as I switched to
pasta
and the followingdocker-compose.yml
file works now: