I have a docker-compose with multiple services. Most of them are defined as
network_mode: bridge and the others as
One of the containers used is
linuxserver/swag as reversed proxy. According to all documentation I should be able to use the container name to direct to another container. For example in the proxy conf:
set $upstream_app homeassistant; set $upstream_port 8123; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port;
However as long as
homeassistant is there (which is there as container) it doesn’t work. It only works when I replace it with an IP.
If I do
nslookup [container] from within any of the containers and picking a random other container the only thing I get is:
nslookup mosquitto Server: 10.114.102.1 Address: 10.114.102.1#53 Non-authoritative answer: *** Can't find mosquitto: No answer
nslookup ebusd Server: 10.114.102.1 Address: 10.114.102.1:53 Non-authoritative answer: Non-authoritative answer:
To my understanding this should be resolved by
resin-dns which is 10.114.102.1; now I’m wondering why this isn’t working?