GithubHelp home page GithubHelp logo

compose-mesos's Introduction

compose-mesos

A Docker Compose sandbox environment with Marathon, Chronos, Consul, HAProxy, Registrator, and a Mesos cluster consisting of one master and three slaves.

Thanks to dontrebootme for the base repo and excellent blog post.

Usage

docker-compose up

Then access the various components via the correct port:

  • Marathon URL: http://DOCKER_HOST:8080
  • Mesos URL: http://DOCKER_HOST:5050
  • Chronos URL: http://DOCKER_HOST:4400
  • Consul URL: http://DOCKER_HOST:8500

Service Orchestration

Application services can be deployed using the Marathon API:

# Starts up 10 microbot apps in docker containers... See microbot.json file
$ curl -X POST -H "Content-Type: application/json" http://DOCKER_HOST:8080/v2/apps [email protected]

As the containers start, Registrator receives the event, notifies Consul, which updates the HAProxy load balancer configuration (via Consul-Template).

You can then reach a microbot app through the load balancer, via:

http://microbot.docker.local

...as long as you've configured a wildcard DNS *.docker.local to point to the DOCKER_HOST IP (or just add it to your /etc/hosts file):

# Use your DOCKER_HOST IP here
192.168.99.100   microbot.docker.local

Other applications can be started in the same way, automatically load balancing based off of the DNS name {app}.docker.local and the Marathon app ID. See haproxy-consul for more information.

compose-mesos's People

Contributors

cgmartin avatar rxacevedo avatar

Watchers

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