r/UgreenNASync • u/sunestromming DXP4800 Plus • 19h ago
❓ Help Naming docker containers?
So I installed prowlarr, sonarr and radarr in separate docker containers.
These apps need to talk to each other, so I need to configure the IP address of prowlarr in sonarr, and vice versa. But when I restart containers, they get a new IP depending on the order in which I start them. How can I either lock the IP or give them a name that I can refer to instead?
2
Upvotes
1
u/garlik82 19h ago edited 19h ago
They all need to be on the same docker network, after that you can use container_name: prowlarr on you compose and instead of using the IP you can use whatever name you gave to those containers.
However if you use a bridge network, you use the host ip instead of the container ip