anpassungen an kundenserver

This commit is contained in:
2025-02-20 00:17:50 +01:00
parent 4b1d7ca7be
commit f78a365e75
4 changed files with 36 additions and 4 deletions

14
Dashboard_V2/Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM python:3.9-slim
WORKDIR /app
# Abhängigkeiten kopieren und installieren
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Anwendungscode kopieren
COPY . .
EXPOSE 9559
CMD ["python", "app.py"]

View File

@@ -12,7 +12,7 @@ EMAIL_SENDER = "clickcandit@gmail.com"
EMAIL_PASSWORD = "iuxexntistlwilhl"
app = Flask(__name__)
app.secret_key = "SUPER_SECRET_KEY" # Bitte anpassen
app.secret_key = "fiudsh9uw4hefjsefnjdsdh"
DATABASE = 'clickcandit.db'
@@ -793,4 +793,4 @@ def get_weather(city):
# ------------------------------------------------------------
if __name__ == '__main__':
init_db()
app.run(debug=True)
app.run(debug=True, port=9559, host="0.0.0.0")

View File

@@ -0,0 +1,17 @@
version: "3.7"
services:
web:
build: .
ports:
- "9559:9559"
volumes:
- ./clickcandit.db:/app/clickcandit.db
- ./:/app
environment:
- FLASK_ENV=production
- SMTP_SERVER=smtp.gmail.com
- SMTP_PORT=465
- EMAIL_SENDER=clickcandit@gmail.com
- EMAIL_PASSWORD=iuxexntistlwilhl
- APP_SECRET_KEY=fiudsh9uw4hefjsefnjdsdh
restart: always

View File

@@ -1,2 +1,3 @@
Flask
Werkzeug
Werkzeug
Flask>=2.2
gunicorn