GithubHelp home page GithubHelp logo

boogermann / production-docker-ha-architecture Goto Github PK

View Code? Open in Web Editor NEW

This project forked from willrstern/production-docker-ha-architecture

0.0 0.0 0.0 2.32 MB

Running Production High Availability Docker Services on CoreOS using Fleet, Flannel, Etcd, Confd & Nginx

Shell 27.09% JavaScript 66.84% CSS 1.76% HTML 4.31%

production-docker-ha-architecture's Introduction

Running Production High Availability Docker Services on CoreOS using Fleet, Flannel, Etcd, Confd & Nginx

Tools used:

  • coreos: server machine clustering via a shared cloud-config.yml
  • etcd: key value store for service registration and discovery
  • fleet: scheduling/failover of docker containers across coreos cluster
  • flannel: Gives each docker container a unique ip that allows you to access the internal port (i.e. port 80 not 32679)
  • confd: watch etcd for nodes arriving/leaving - template nginx configuration files / reload nginx on change

Docker Containers Used:

  • willrstern/node-sample: a sample node.js app that simply echoes it's APPNAME environment variable
  • willrstern/nginx-lb: a reusable nginx + confd image
    • uses confd to watch etcd and configure nginx to load balance for multiple docker containers
    • watches etcd keys/services/<servicename>/upstream/* and reloads nginx with an updated config when upstream nodes change
    • requires 2 env variables: SERVICE_NAME and ETCD so it knows which servicename to watch in etcd's registry
  • willrstern/nginx-dns: an nginx + confd image for dynamic DNS based off of etcd keys/subdomain/* entries
    • requires 1 env variable: ETCD the ip address + port of the etcd instance it's watching

production-docker-ha-architecture's People

Contributors

willrstern avatar mapedersen 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.