removed multiple workers as they do not work well with flask

This commit is contained in:
2026-04-22 13:29:23 +02:00
parent 5f3c66ab3d
commit 9f4007c0e9
3 changed files with 2 additions and 6 deletions

View File

@@ -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"]

View File

@@ -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

View File

@@ -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