fix&refactor: correct port mapping in docker-compose and set fixed port in main.py

This commit is contained in:
adlsdztony
2025-06-01 10:57:14 +08:00
parent 60a2b495b9
commit d1a001b2b7
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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)