Skip to content
A sample application which counts hits to a page
Branch: master
Clone or download
Latest commit 8532937 Jun 30, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
ansible-playbooks Add link and install docker May 11, 2016
.gitignore Add gitignore May 12, 2016
Dockerfile Expose port 5000 May 11, 2016
LICENSE Initial commit Oct 18, 2015 Add usage instructions to README Jun 29, 2016
docker-compose.yml Add docker-compose.yml Nov 9, 2015
requirements.txt Add requirements.txt Oct 20, 2015


A sample application which counts hits to a page

This is a simple application that shows the amount of times the page has been seen. It's an example Flask python web application that uses a Redis database.


To build the image:

$ git clone
$ cd page-hit-counter
$ docker build -t page-hit-counter .

Then run it:

$ docker-compose up -d

The page-hit-counter application will be available in your browser at this url:

Image on Docker Registry

There is also an image on the Docker Registry which you can pull like this:

$ docker pull emmetog/page-hit-counter

You can then use it in the same way, except you might need to add the "emmetog/" prefix in docker-compose.yml if you're pulling instead of building.

You can’t perform that action at this time.