docker laten werken hiermee is zo moeilijk

This commit is contained in:
2020-02-24 09:56:47 +01:00
parent 93df0d9f48
commit d901955539
5 changed files with 8 additions and 8 deletions

15
serverA/app.py Normal file
View File

@@ -0,0 +1,15 @@
from flask import Flask
import requests
app = Flask(__name__)
URL = "http://service:6000"
@app.route('/')
def doRequest():
return requests.get(URL).json()
if __name__ == '__main__':
app.run(debug=True, host="0.0.0.0", port=5000)