I have 2 docker containers in the same network - web and proxy running haproxy with backend
backend web
server web web:80 check
Also init-addr is set to last,libc,none, so it does not fail if can't resolve web on start.
If I start proxy first, haproxy reports could not resolve address 'web', disabling server.
Then I start web. It become accessible by name from proxy, responding on ping and telnet.
But haproxy still treats web backend down.
I expect haproxy retry checking backend web on default interval (every 2 seconds as per documentation), and, as resilt - trying to resolve dns again on every check.
How can I configure haproxy to wait until dns will resolve backend server name and then automatically up that backend?