keshavdaboss Posted August 15, 2020 Share Posted August 15, 2020 Hi! I am trying to setup some docker containers in Unraid. One of my containers (bookstack) depends on mariadb to store its information. Every time I launch the containers the database seems to get a different IP on the docker network. Is there a way to use the name of the container to resolve the IP. I know this is possible with docker-compose but I want to know if there is a way to do it in unraid. For example entering db:3006 instead of 192.168.x.x:3306 Thank You! Quote Link to comment
Squid Posted August 15, 2020 Share Posted August 15, 2020 11 hours ago, keshavdaboss said: 192.168.x.x:3306 This shouldn't change, as it's your host IP. (The 172.x.x.x address will change). Referring to host:port is the usual way of doing things. Quote Link to comment
Recommended Posts
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.