Git Product home page Git Product logo

haproxy's Introduction

haproxy

docker run command ::

docker run -v /path/to/folder:/etc/haproxy -p 80:80 -p 443:443 -p 5432:5432 -it --name <<container-name>> --hostname <<hostname>> akhilrajmailbox/haproxy:latest /bin/bash

NOTE ::

If these directories are not empty then the server will not overwirte the configuration, it will choose the existing one. but if the directory is empty, then the container will not start.

here we are mounting these directory to host,

        /etc/haproxy          =       for haproxy configuration (haproxy.cfg)

INFO ::

you can find the configuration templates under your mount point once the server start.


check the folder under the mount point (/path/to/mountpoint/real-conf)

the 'real-conf' folder consist of the following template,

	*  haproxy.cfg-backend			=	http configuration with request header
	*  haproxy.cfg-letsencrypt		=	haproxy with 'letsencrypt' ssl certificate with request header
	*  haproxy.cfg-redirect			=	haproxy configuration with redirection
	*  haproxy.cfg-ssl			=	https configuration in frontend reflect on all backend with request header
	*  haproxy.cfg-ssl-individual		=	https configuration in specified backend with request header 

NOTE :::

  • 5432 port is used for web_ui (need credentials) This port is configured in the file 'haproxy.cfg' under the mount location

web_ui ::

admin		=		
password	=		

haproxy's People

Watchers

James Cloos 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.