File size: 630 Bytes
86c1104
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)