modified: Dockerfile
This commit is contained in:
@@ -31,4 +31,7 @@ USER appuser
|
||||
EXPOSE 8000
|
||||
|
||||
# Startbefehl (Production: Gunicorn)
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "--timeout", "120", "wsgi:app"]
|
||||
# --preload: Die App (inkl. db.create_all() + Seed) wird einmal im Master geladen,
|
||||
# bevor die Worker geforkt werden. Das verhindert den Startup-Race, bei dem mehrere
|
||||
# Worker gleichzeitig dieselben Tabellen erstellen.
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "--timeout", "120", "--preload", "wsgi:app"]
|
||||
|
||||
Reference in New Issue
Block a user