old_contents: from flask import Flask
  from redis import Redis
  import os
  import socket
  app = Flask(__name__)
  redis = Redis(host='redis', port=6379)
  host = socket.gethostbyaddr(socket.gethostname())
  
  @app.route('/')
  def hello():
      redis.incr('hits')
      return '\nHello Cloud Community!\nI have been seen %s times.\nMy Host name is %s\n\n' % (redis.get('hits') ,host)
  
  if __name__ == "__main__":
      app.run(host="0.0.0.0", debug=True)
  
new_contents: from flask import Flask
  from redis import Redis
  import os
  import socket
  app = Flask(__name__)
  redis = Redis(host='redis', port=6379)
  host = socket.gethostbyaddr(socket.gethostname())
  
  @app.route('/')
  def hello():
      redis.incr('hits')
      return '\nHello World!\nI have been seen %s times.\nMy Host name is %s\n\n' % (redis.get('hits') ,host)
  
  if __name__ == "__main__":
      app.run(host="0.0.0.0", debug=True)
  
subject: Update app.py