Adjust the number of workers
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e29b29bf0a
commit
438fd1c313
@ -31,4 +31,4 @@ COPY . .
|
|||||||
EXPOSE 8002
|
EXPOSE 8002
|
||||||
|
|
||||||
# Default CMD (compose will override with your shell that migrates, collectstatic, and runs gunicorn:8002)
|
# Default CMD (compose will override with your shell that migrates, collectstatic, and runs gunicorn:8002)
|
||||||
CMD ["gunicorn", "polisplexity.wsgi:application", "--bind", "0.0.0.0:8002", "--workers=3", "--timeout=180"]
|
CMD ["gunicorn", "polisplexity.wsgi:application", "--bind", "0.0.0.0:8002", "--workers=4", "--timeout=180"]
|
||||||
|
@ -31,7 +31,7 @@ services:
|
|||||||
command: >
|
command: >
|
||||||
sh -c "python manage.py migrate &&
|
sh -c "python manage.py migrate &&
|
||||||
python manage.py collectstatic --noinput &&
|
python manage.py collectstatic --noinput &&
|
||||||
gunicorn polisplexity.wsgi:application --bind 0.0.0.0:8002 --workers=2 --timeout=180"
|
gunicorn polisplexity.wsgi:application --bind 0.0.0.0:8002 --workers=4 --timeout=180"
|
||||||
volumes:
|
volumes:
|
||||||
- static_data:/app/static
|
- static_data:/app/static
|
||||||
- media_data:/app/media
|
- media_data:/app/media
|
||||||
|
Loading…
x
Reference in New Issue
Block a user