GithubHelp home page GithubHelp logo

isabella232 / haproxy-docker-logging Goto Github PK

View Code? Open in Web Editor NEW

This project forked from medigo/haproxy-docker-logging

0.0 0.0 0.0 11 KB

Latest Alpine-based official HAProxy image with logging to STDOUT

Shell 37.04% Dockerfile 62.96%

haproxy-docker-logging's Introduction

HAProxy with logging to STDOUT

About this image

This image uses latest Alpine-based HAProxy image, starts rsyslog and provides STDOUT logging. Access HAProxy logs through docker logs -f <id or name of your container>.

Configuration

To use STDOUT logging with your Docker container, please use this snippet in your HAProxy config:

global
    log 127.0.0.1 local0 debug

defaults
    log global

Usage

Please visit official HAProxy repository for information on how to use this image. It is pretty the same.

Example

Mounting a HAProxy configuration file is mandatory. This image doesn't include any configuration itself. See the -v section below.

docker run -d \
           -p 8080:9000 \
           -v $(pwd)/haproxy.cfg.EXAMPLE:/usr/local/etc/haproxy/haproxy.cfg:ro \
           --name haproxy \
           mminks/haproxy-docker-logging

Reload HAProxy

Reload your HAProxy in case of config changes without restarting the complete container. Send a SIGHUP signal to the container an the HAProxy process will reload gracefully.

docker kill -s SIGHUP haproxy

Contribution

I welcome any kind of contribution. Fork it or contact me. I appreciate any kind of help.

haproxy-docker-logging's People

Contributors

bsedin avatar mminks avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.