dynamic port through TICKET_AI_PORT environment variable in service

This commit is contained in:
root 2024-11-26 13:22:13 +01:00
parent b7a31e7c01
commit 1b4c924584

View File

@ -96,4 +96,5 @@ def get_logs():
return jsonify(response_list) return jsonify(response_list)
if __name__ == '__main__': if __name__ == '__main__':
app.run(debug=True, host="0.0.0.0") port = int(os.environ.get("TICKET_AI_PORT", 5000)) # Default to 5000 if no environment variable is set
app.run(debug=True, host="0.0.0.0", port=port)