2022-04-26 08:55:07 +02:00
|
|
|
#!/bin/bash
|
2022-04-26 10:09:58 +02:00
|
|
|
# Start all needed services once the container is fired up!
|
2022-04-26 08:55:07 +02:00
|
|
|
service nginx start
|
|
|
|
service redis-server start
|
|
|
|
celery -A konova worker --detach
|
2022-04-26 10:09:58 +02:00
|
|
|
# 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
|