Coder Social home page Coder Social logo

docker-haproxy-docker's Introduction

haproxy-internal

This HAPROXY Image is Running a update-config Script written by Frank Lemanschik from Direkt SPEED Europe it uses docker to do docker ps on a setted DOCKER_HOST that is coded via ENV var into this image to allow easy replacement the dockerhost is hardcoded to 172.17.42.1:2434 whats the standart docker bridge and standart docker port

All Running Containers Where the Name Starts with WEB_ wich got a ENV HAPROXY_DOMAIN domain.tld get aded to backend domain.tld with port 80 if your application runns on other port set ENV HAPROXY_PORT in that Container to the port of your web application.

TODO:

  • Listen for Docker Container Created Events and then re run the Script
  • Modify it complet to Act on Container Create Base.

USE:

We Bind Port 80 of the Host to 80 of the Container and set it to Always Restart as also bind docker executeable in from host because we need to run same version of docker in host and container You can Remove this Mount Step and add your docker binary in the right version with a other method

docker run -d -p 80:80 -v /usr/bin/docker:/usr/bin/docker --restart="always" dockerimages/haproxy-internal)

BUILD:

docker build -t dockerimages/haproxy-docker git://github.com/dockerimages/haproxy-docker)

docker-haproxy-docker's People

Contributors

frank-dspeed avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

afcarl

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.