Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4744

Let HAProxy starts despite servers not yet running in docker

$
0
0

@sanjibukai wrote:

Hello,
I try to setup HAProxy as a reverse proxy and SSL termination for my websites.
After googling for examples I finally managed to have a little setup with HAProxy and two services.
Since the IP addresses of my services could change, I decided to go with using the hostnames of the services (eg. server nginx static:80).

However, ff my service containers are not yet running, the HAProxy container is not starting at all.
In order to get the setup working I should run HAProxy always as the latest.
I found an option (default-server init-addr last,libc,none put in defaults section) that allows the HAProxy container to start even if one of my container are not up.

The problem is that when that container is up, HAProxy does not detects this.
I tried with enabling check interval without success.
Can anyone explain me how I can manage to have my HAProxy container been able to automatically connect (without raising errors when starting) to a backend whenever is up.

Thank you very much.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4744

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>