docker-archive / dockercloud-haproxy

HAproxy image that autoreconfigures itself when used in Docker Cloud
https://cloud.docker.com/
651 stars 187 forks source link

Service Unavailable (503) Custom HTML #242

Open franky-continu opened 6 years ago

franky-continu commented 6 years ago

I have a very basic (Next, next, next) HAProxy LB on cloud.docker.com.

I don't have any repository and I do all the configuration through Environment Variables. Even Certs.

I can't find a way to have a custom 503 message. Every time we deploy our web-app it takes about 30 seconds to build and it can happen that we get a service unavailable because the web server is building and starting up.

We get the standard 503, but I read somewhere that you can put an errorfile command or something like that and you can put a static html basically and maybe we can say something like:

We are updating, sorry for the trouble, etc.

Can I use an Environment Variable to do that? Even if I copy and paste HTML into the env-variable.