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: ..
|
||||
dockerfile: monitor/Dockerfile
|
||||
ports:
|
||||
- "${FLASK_PORT:-8080}:${FLASK_PORT:-8080}"
|
||||
- "${FLASK_PORT:-8080}:8080"
|
||||
volumes:
|
||||
- ../evaluation_examples:/app/evaluation_examples
|
||||
- ../results_operator_aws:/app/results_operator_aws
|
||||
|
||||
@@ -183,7 +183,7 @@ if __name__ == '__main__':
|
||||
|
||||
# Start web service
|
||||
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"
|
||||
|
||||
app.run(host=host, port=port, debug=debug)
|
||||
Reference in New Issue
Block a user