seejohnrun/haste-server — pull request #57 by ekristen (2014-03-18 13:33:07+00:00)
Title: Dockerize hastebin

docker is a pretty cool new technology, I've update this app to build a docker image. I've also updated the app to use node-config, which allows for loading different config files based on hostname, node environment, etc.

If you accept the PR anyone who updates will have to redo their config slightly by moving it into the config folder and modifying it to look like default.js, except with their values.

If you accept the PR, you can setup a trusted build on index.docker.io to build hastebin image automatically, since you are the author, I left that for you.

How to build docker image for testing
```
docker build -t hastebin .
```
Download redis into docker
```
docker pull dockerfile/redis
```
Start the stack
```
docker run -d --name="hastebin_redis" dockerfile/redis
docker run -d --name="hastebin" -p 7777:7777 -link hastebin_redis:redis hastebin
```