Docker_worker_enhance #155

Merged
mpeltriaux merged 4 commits from Docker_worker_enhance into Docker 2022-05-09 11:05:33 +02:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 7027e0c02b - Show all commits

View File

@ -1,4 +1,4 @@
FROM python:3.7 FROM python:3.9-slim
ENV PYTHONUNBUFFERED 1 ENV PYTHONUNBUFFERED 1
WORKDIR /konova WORKDIR /konova

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Start all needed services inside the container! # Start all needed services once the container is fired up!
service nginx start service nginx start
service redis-server start service redis-server start
celery -A konova worker --detach celery -A konova worker --detach
gunicorn konova.wsgi:application --bind 0.0.0.0:8000 # Rule of thumb: (2*CPU)+1 as worker_num -> Use 5 as default (matches a dual core)
gunicorn --workers=5 konova.wsgi:application --bind=0.0.0.0:8000