/hello_world_redis_docker

A Redis+Flask 'Hello World' app on Docker Fig

Primary LanguagePython

HelloWorldRedisDocker

Testing Docker multi-container app implementation using Fig and container linking. Modified example from http://www.fig.sh

Assumptions:

Files:

  • Dockerfile - Dockerfile to build web-tier container
  • fig.yml - Fig file describing the multi-container app environment
  • requirements.txt - File describing pip dependencies for web container build
  • /code/HelloWorldRedis.py - 'Hello World' Python Flask web app that increments counter in Redis and prints it out

To start: $ fig up

To access: $ curl ($ip):5000

Note:

  • Lowercase repo/encasing folder name is required to avoid an issue that causes the web container build from the Dockerfile to fail