Sign inSign up

diviak/haproxy

By diviak

•Updated over 4 years ago

Image
0

221

diviak/haproxy repository overview

⁠How to use

  • copy env.dist to .env
  • run dc up

⁠Docker hub

docker push diviak/haproxy
⁠Example of haproxy.cfg
global
    user haproxy
    group haproxy

defaults
    timeout connect 10s
    timeout client 30s
    timeout server 30s
    mode http

frontend http-in
   bind *:80

   use_backend app if { hdr(host) -i app }
   use_backend adminer if { hdr(host) -i adminer }
   use_backend mailcatcher if { hdr(host) -i mailcatcher }

backend app
    server app app_host:443

backend adminer
    server adminer adminer_host:80

backend mailcatcher
    server mailcatcher mailcatcher_host:80

Tag summary

Content type

Image

Digest

Size

36.2 MB

Last updated

over 4 years ago

docker pull diviak/haproxy