0.0.1 • Published 10 years ago

dopache v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
10 years ago

Docker + Hipache = Dopache

Link containers and their assigned ip + a port to hipache.

Install

npm install dopache -g

Usage

Lets say you have a domain enome.be which you want to proxy to a container named enome-container on port 3000.

redis-cli set dopache:enome.be enome-container:3000

This will create the following hipache settings:

redis-cli lrange frontend:enome.be 0 -1 #[ 'enome-container', '175.44.66.20:3000']

The ip is assigned by Docker. Dopache doesn't support multiple containers per frontend if you need this send me a pull request.

Tests

vagrant up
mocha -r should tests.js