Shortener is a simple, experimental, url shortener. It was built with node.js, express.js and mongoDB.
docker run --name some-mongo -d mongo
docker run --name some-shortener --link some-mongo:mongo -p 80:8000 -d baleinesurseine/shortener
This image includes expose 8000
.
-e "DB=db
: sets the database name (default is 'url_shortener')
-e "WEBHOST=host"
: sets the web host url (default is 'http://localhost/')
docker exec <instance-name> node reset.js