old_contents: import os
  from flask import Flask
  
  app = Flask(__name__)
  
  @app.route("/")
  def hello():
      return "Statis Server\n"
  
  if __name__ == "__main__":
      port = int(os.environ.get("PORT", 5000))
      app.run(host='0.0.0.0', port=port)
  
  
new_contents: from flask import Flask
  from redis import Redis
  
  app = Flask(__name__)
  redis = Redis(host='redis', port=6379)
  
  @app.route("/")
  def hello():
      count = redis.incr('hits')
      return 'Statis Server Homepage has been seen {} times.\n'.format(count)
  
  if __name__ == "__main__":
      app.run(host="0.0.0.0", port=5000, debug=True)
  
  
subject: Test page working