mirror of https://github.com/docker/compose.git
Use hostname on home page example
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
parent
90f5eda930
commit
6d64f20ad6
|
@ -59,10 +59,7 @@ from flask import Flask
|
|||
from redis import Redis
|
||||
import os
|
||||
app = Flask(__name__)
|
||||
redis = Redis(
|
||||
host=os.environ.get('REDIS_1_PORT_6379_TCP_ADDR'),
|
||||
port=int(os.environ.get('REDIS_1_PORT_6379_TCP_PORT'))
|
||||
)
|
||||
redis = Redis(host="redis_1", port=6379)
|
||||
|
||||
@app.route('/')
|
||||
def hello():
|
||||
|
|
Loading…
Reference in New Issue