Communication Between Two Custom Docker Networks


Recommended Posts

Greetings,

I have two custom docker networks. One is the normal br0 network and the other is one setup for reverse proxy called proxynet. Proxynet is setup following SpaceInvaderOne's videos about reverse proxy. So I have my home assistant docker running on the reverse proxy so that I can access my dashboard from out of my home network. But i have my Ubiquiti Unifi docker on by Br0 network because i want it to have its own IP, I don't want it exposed to the web, and so that it can operate correctly by finding my APs. 
So I went to integrate home assistant and the ubiquiti controller but i can't because the Home assistant docker cannot communicate with the ubiquiti controller docker. 
Can someone give me some help understanding the problem in greater detail and some possible solutions. Networking is not my strong suite and but i'm leaning. 
Thanks in advance!

Link to comment

A docker container can be connected to multiple docker networks, just not if i remember correctly anywhere in the unRAID web interface. You would use the command

docker network connect

from the terminal to connect a container to a second network. The annoying bit, again if i remember correctly, is that you would have to rerun that command everytime the container is re-created, such as when you use the update button in the web-gui.

Link to comment
  • 5 months later...
On 4/5/2021 at 5:53 PM, primeval_god said:

A docker container can be connected to multiple docker networks, just not if i remember correctly anywhere in the unRAID web interface. You would use the command

docker network connect

from the terminal to connect a container to a second network. The annoying bit, again if i remember correctly, is that you would have to rerun that command everytime the container is re-created, such as when you use the update button in the web-gui.

That is correct and it works great for me. However I would love for this command to be run for a specific container when it is recreated or on start. Any ideas anyone? :D pls

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.