aboutsummaryrefslogtreecommitdiffstats
path: root/library/recipes/docker_compose/example/app.py
blob: 77afcc9b6aa67022fd596392885491cd943ba385 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import time

import redis
from flask import Flask


app = Flask(__name__)
cache = redis.Redis(host='redis', port=6379)


@app.route('/')
def hello():
    return 'Hello World!'


if __name__ == "__main__":
    app.run(host="0.0.0.0", debug=True)