Public Repository

Last pushed: 5 months ago
Short Description
Ubuntu based Haproxy image with logging to stdout/stderr
Full Description

Supported tags and respective Dockerfile links

Image based on ubuntu Xenial and uses osso launchpad ppa

This image uses Gospawn so we can output the logging to /dev/log to stdout/stderr. Check it's github for other features.

Examples:

docker run -p 8085:80 -v /path/to/haproxy.cfg:/etc/haproxy/haproxy.cfg ossobv/haproxy:1.7.2

haproxy.cfg

global
    log /dev/log local0
    log /dev/log local1 notice
    stats socket /tmp/admin.sock mode 660 level admin
    stats timeout 30s
    user haproxy
    group haproxy

defaults
    log global
    mode http
    option httplog
    option dontlognull
    timeout connect 5000
    timeout client 50000
    timeout server 50000
    errorfile 400 /etc/haproxy/errors/400.http
    errorfile 403 /etc/haproxy/errors/403.http
    errorfile 408 /etc/haproxy/errors/408.http
    errorfile 500 /etc/haproxy/errors/500.http
    errorfile 502 /etc/haproxy/errors/502.http
    errorfile 503 /etc/haproxy/errors/503.http
    errorfile 504 /etc/haproxy/errors/504.http

listen http-in
    bind 0.0.0.0:80
    option httpchk
    server server1 10.10.10.10:9000 check
Docker Pull Command
Owner
ossobv