dopache

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i dopache

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • enome