Skip to content

ling-rain/docker-python-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-python-app

A python flask webapp using redis - Dockerfile and compose file included

requirements to run on multiple nodes

Create an overlay network on each of your nodes you want to run this on to be able to link them and have them communicate

( make sure docker-engine is started with the --cluster-store=consul://IP:PORT options)

and that you have a running K/V store for example consul.

docker network create -d overlay webapp

Instructions

git clone https://github.com/kamigerami/docker-python-app.git 
cd docker-python-app

if you are using compose

docker-compose up -d

if you want to start everything manually

docker -H :3375 run -d -P -p 6379:6379 --name redis -h redis --net=webapp redis
docker -H :3375 run -d -P -p 5000:5000 --name python-app -h python-app --link redis --net=webapp kamigerami/python-app

if you want to create your own image from the Dockerfile

docker build -t python-app .

go to your host on port :5000

About

A python flask webapp using redis - Dockerfile and compose file included

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages