Trae Assistant
Initial commit: Enriched Docker Compose Architect with network support, demo data, and improved UI
86c1104
raw
history blame contribute delete
630 Bytes
from flask import Flask, render_template, jsonify
import os
app = Flask(__name__)
# Max file upload size (16MB) - although explicit uploads are client-side, this is good practice
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
# Project metadata for the dashboard
short_description = "Docker Compose 可视化编排工具,支持多服务配置与 YAML 生成"
@app.route('/')
def index():
return render_template('index.html')
@app.route('/health')
def health():
return jsonify({"status": "healthy"})
if __name__ == '__main__':
port = int(os.environ.get('PORT', 7860))
app.run(host='0.0.0.0', port=port)