I have one container that’s using
network_mode: host. This is necessary, because I use dnsmasq inside that container for the Wi-Fi chip to function as access point. This needs direct access to
wlan0. I’d prefer to not use
network_mode: host at all for this container, but at this time it’s the only thing that works.
Having said that, I’d like for that container to access another container (my Redis service). Normally, I’d just have to connect to the name of the container, so
redis in this case. But this doesn’t work, because the
redis container uses the
bridge network and my other container uses the
Is there a way to connect (reliable) to the redis container, without exposing the redis container to the network of the device? I don’t want to have direct access to that container from outside the device for security reasons. So simply adding
network_mode: host to that container doesn’t seem like a great idea.
Thanks in advance!