Skip to content

Commit

Permalink
Merge branch 'master' of github.com:nickschuch/marco
Browse files Browse the repository at this point in the history
  • Loading branch information
nickschuch committed Dec 28, 2014
2 parents 3ed4cd8 + 25ba3e4 commit f4a40e8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 13 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: go
go:
- 1.3

script:
- go test -v ./...

34 changes: 21 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Marco
Marco [![Build Status](https://travis-ci.org/nickschuch/marco.svg?branch=master)](https://travis-ci.org/nickschuch/marco)
=====

A simple proxy for Docker containers.
Expand All @@ -7,15 +7,26 @@ A simple proxy for Docker containers.

### Example

Running on the domain **example.com**

I have the containers named:
* **container1** - HTTP exposed on port 80
* **container2** - HTTP exposed on port 8983

The router will proxy these using the following hosts:
* **container1.example.com**
* **container2.example.com**
I have the containers:
* **container1**
* Port 80 exposed
* Environment variable DOMAIN set to _www.example.com_
* **container2**
* Port 80 exposed
* Environment variable DOMAIN set to _www.example.com_
* **container3**
* Port 8983 exposed
* Environment variable DOMAIN set to _www.foobar.com_
* **container4**
* Port 80 exposed
* **container5**
* Environment variable DOMAIN set to _www.baz.com_

This proxy will setup the following routes:
* A "random" load balanced connection between _container1_ and _container2_
* A proxy connection to _container3_
* No proxy connection will be setup for _container4_ given it doesn't have a DOMAIN environment variable set.
* No proxy connection will be setup for _container5_ given it doesn't have a Port exposedt.

### How to run

Expand Down Expand Up @@ -62,9 +73,6 @@ _I will post a video very soon..._

### Roadmap

* Test suite
* Unit tests
* Functional tests
* Http auth (maybe)
* Logging
* Error handling

0 comments on commit f4a40e8

Please sign in to comment.