Prepare database-free BortStack deployment
This commit is contained in:
+1
-1
@@ -12,4 +12,4 @@ ENV HOME=/home/app \
|
||||
PYTHONUNBUFFERED=1
|
||||
USER app:app
|
||||
EXPOSE 5000
|
||||
CMD ["gunicorn", "--config", "gunicorn.conf.py", "api:app"]
|
||||
CMD ["gunicorn", "--config", "gunicorn.conf.py", "contact_app:app"]
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
"""Environment-tunable Gunicorn defaults for the generic container."""
|
||||
"""Environment-tunable Gunicorn defaults for the Contact container."""
|
||||
|
||||
import os
|
||||
|
||||
bind = "0.0.0.0:5000"
|
||||
workers = int(os.environ.get("GUNICORN_WORKERS", "2"))
|
||||
workers = int(os.environ.get("GUNICORN_WORKERS", "1"))
|
||||
timeout = int(os.environ.get("GUNICORN_TIMEOUT", "30"))
|
||||
graceful_timeout = int(os.environ.get("GUNICORN_GRACEFUL_TIMEOUT", "30"))
|
||||
keepalive = int(os.environ.get("GUNICORN_KEEPALIVE", "5"))
|
||||
errorlog = "-"
|
||||
accesslog = None # Query strings may contain verification/reset tokens.
|
||||
accesslog = None # Avoid logging visitor data or query strings.
|
||||
capture_output = False
|
||||
|
||||
Reference in New Issue
Block a user