浏览代码

Dateien als Vorlage von status-server

robert 2 年之前
父节点
当前提交
b269c8daa4
共有 4 个文件被更改,包括 28 次插入0 次删除
  1. 10 0
      docker-compose.yml
  2. 6 0
      main.py
  3. 5 0
      requirements.txt
  4. 7 0
      uwsgi.ini

+ 10 - 0
docker-compose.yml

@@ -0,0 +1,10 @@
+version: "3"
+services:
+  flask-default:
+    image: tiangolo/uwsgi-nginx-flask:python3.10
+    container_name: flask-default
+    privileged: true
+    ports:
+      - "8088:80"
+    volumes:
+      - ./:/app

+ 6 - 0
main.py

@@ -0,0 +1,6 @@
+from flask import Flask
+from app import views, api
+
+app = Flask(__name__, template_folder='app/templates')
+app.register_blueprint(views.bp)
+app.register_blueprint(api.bp, url_prefix='/api')

+ 5 - 0
requirements.txt

@@ -0,0 +1,5 @@
+Flask>=2.2.0
+beautifulsoup4
+pandas
+sqlalchemy
+zipfile

+ 7 - 0
uwsgi.ini

@@ -0,0 +1,7 @@
+[uwsgi]
+module = main
+callable = app
+master = true
+touch-reload = /app/uwsgi.ini
+# debug = true
+