Consul tracks cluster membership as nodes join and leave. I had to: Reset my /etc/default/docker to default so containers use my host's nf content instead. Which in my case caused domain names to be off-limits.
#HARDCODE DOCKER IP ADDRESS MANUALS#
Instead, connect to localhost:7101 where haproxy routes traffic to a 'random' postgresql server (because of the port number) in the cluster. Unfortunately according to the docker manuals docker will filter out any localhost IP addresses when building the container's nf and replace them with Google's DNS IPs.
![hardcode docker ip address hardcode docker ip address](https://www.michelebologna.net/wp-content/2019/02/undraw_Opened_re_i38e.png)
![hardcode docker ip address hardcode docker ip address](https://www.freecodecamp.org/news/content/images/2020/06/docker-network.png)
In pfSense, create a static DHCP lease for the MAC and IP configuration.
#HARDCODE DOCKER IP ADDRESS INSTALL#
Reply on Twitter 1489652642506850304 Retweet on Twitter 1489652642506850304 1633 Like on Twitter 1489652642506850304 3530 Twitter 1489652642506850304 Load More. Never hard code IP addresses in source code. Install the correct version for your unRAID version then for each Docker you want to assign an IP, enable advanced mode, change network to 'none' and add the code below to the 'extra parameters' box specifying a unique IP/gateway and a unique valid fake MAC address.