removed multiple workers as they do not work well with flask
This commit is contained in:
@@ -38,4 +38,4 @@ COPY --from=css-builder /build/static/css/output.css ./app/static/css/output.css
|
|||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
# Gunicorn command
|
# Gunicorn command
|
||||||
CMD ["gunicorn", "-w", "4", "--worker-class", "eventlet", "-b", "0.0.0.0:5000", "app.wsgi:app"]
|
CMD ["gunicorn", "-w", "1", "--worker-class", "eventlet", "-b", "0.0.0.0:5000", "app.wsgi:app"]
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ from app.auth import init_auth
|
|||||||
from app.seed_db import seed_courses
|
from app.seed_db import seed_courses
|
||||||
from app.config import Config
|
from app.config import Config
|
||||||
|
|
||||||
socketio = SocketIO(async_mode='eventlet', cors_allowed_origins="*", message_queue='redis://redis:6379')
|
socketio = SocketIO(async_mode='eventlet', cors_allowed_origins="*")
|
||||||
|
|
||||||
def create_app(config_class=Config):
|
def create_app(config_class=Config):
|
||||||
# 1. Setup Log Directory
|
# 1. Setup Log Directory
|
||||||
|
|||||||
@@ -31,10 +31,6 @@ services:
|
|||||||
condition: service_started
|
condition: service_started
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
|
|
||||||
redis:
|
|
||||||
image: redis:alpine
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus:latest
|
image: prom/prometheus:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user