Running multiple containers on a debian host.
Debian Host IP = 192.168.1.80
Running adguard on this host from within a docker container.
I need to know why other containers cannot access adguard at 192.168.1.80:53.
Here is my docker-compose.yml for adguard:
version: "3.9"
services:
adguardhome:
image: adguard/adguardhome
container_name: adguardhome
ports:
- 53:53/tcp
- 53:53/udp
- 3000:3000/tcp
# - 3001:80/tcp
- 3002:8902/tcp
volumes:
- ./conf:/opt/adguardhome/conf
- ./data:/opt/adguardhome/work
restart: always
network_mode: host #bridge = same outcomes
the following commands demonstrate what is and isn't working:
debian$ nslookup google.com 192.168.1.80
[success]
debian$ docker compose exec node-red bash
bash-5.1$ nslookup google.com 192.168.1.80
;; connection timed out; no servers could be reached
but doing the same commands from (for instance) my home assistant container, it works as expected. Difference in the compose files for node red and HA are that node red uses it's own network while HA is on the host
network. But I don't think I should need to put every container on the host network, right?
Appreciate any help! Thanks
lots of stuff!