anpassungen an kundenserver
This commit is contained in:
14
Dashboard_V2/Dockerfile
Normal file
14
Dashboard_V2/Dockerfile
Normal 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"]
|
||||
@@ -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")
|
||||
|
||||
17
Dashboard_V2/docker-compose.yml
Normal file
17
Dashboard_V2/docker-compose.yml
Normal 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
|
||||
@@ -1,2 +1,3 @@
|
||||
Flask
|
||||
Werkzeug
|
||||
Werkzeug
|
||||
Flask>=2.2
|
||||
gunicorn
|
||||
|
||||
Reference in New Issue
Block a user