/docker-nodejs-redis

A simple Node app that uses redis

Primary LanguageJavaScript

Simple Node

Build Status

This is a simple Node.js app which uses redis as backend. It displays the hostname of the container who serves the request and how many times the page has been visited.

alt tag

Usage

  1. You need to have redis running on port 6379 and discoverable as 'redis'. For example, you can start redis by
docker run -d -p 6379:6379 --name redis redis
  1. Run this image
docker run -d -p 80:8080 --link redis:redis chenglong/simple-node
  1. Test
curl <HOST_IP>