fix&refactor: correct port mapping in docker-compose and set fixed port in main.py
This commit is contained in:
@@ -6,7 +6,7 @@ services:
|
|||||||
context: ..
|
context: ..
|
||||||
dockerfile: monitor/Dockerfile
|
dockerfile: monitor/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "${FLASK_PORT:-8080}:${FLASK_PORT:-8080}"
|
- "${FLASK_PORT:-8080}:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- ../evaluation_examples:/app/evaluation_examples
|
- ../evaluation_examples:/app/evaluation_examples
|
||||||
- ../results_operator_aws:/app/results_operator_aws
|
- ../results_operator_aws:/app/results_operator_aws
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
# Start web service
|
# Start web service
|
||||||
host = os.getenv("FLASK_HOST", "0.0.0.0")
|
host = os.getenv("FLASK_HOST", "0.0.0.0")
|
||||||
port = int(os.getenv("FLASK_PORT", "8080"))
|
port = 8080
|
||||||
debug = os.getenv("FLASK_DEBUG", "false").lower() == "true"
|
debug = os.getenv("FLASK_DEBUG", "false").lower() == "true"
|
||||||
|
|
||||||
app.run(host=host, port=port, debug=debug)
|
app.run(host=host, port=port, debug=debug)
|
||||||
Reference in New Issue
Block a user