A simple Node app that uses redis
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
images
test
.gitignore
.travis.yml
README.md
docker-compose.ci.yml
docker-compose.local.yml
local.test

README.md

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>