Commit 358b485b authored by Daniel Widerin's avatar Daniel Widerin

Add docs how to run with docker.

parent 095baf38
......@@ -18,6 +18,10 @@ Sample Flask application dockerized
pip install -r requirements.txt
FLASK_APP=server.py flask run
or
docker run -p 5000:5000 registry.gitlab.com/widerin/vlbg-webdev-1016:example-1
Run application in browser using http://localhost:5000/ping
### Example 2
......@@ -31,6 +35,10 @@ Now you're ready to launch example 2
cd example-2
pip install -r requirements.txt
FLASK_APP=server.py flask run
or
docker run -p 5000:5000 --link redis:redis registry.gitlab.com/widerin/vlbg-webdev-1016:example-2
Run application in browser using http://localhost:5000/ping. Each time you
refresh your browser, it will increment the counter stored in Redis:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment