HAProxy - andreydiveev/wiki GitHub Wiki

docker-compose.yml:

version: "2"
services:
  haproxy:
    image: haproxy
    ports:
    - 443:443
    volumes:
    - ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg

haproxy.cfg:

listen l1
    bind 0.0.0.0:443
    mode tcp
    timeout connect  4000
    timeout client   180000
    timeout server   180000
    server srv1 host.example.com:9443