Browse Source

Ajuste de parâmetros gunicorn e Dockerfile

pull/3486/head
Edward Ribeiro 3 years ago
parent
commit
fad263309c
  1. 1
      docker/Dockerfile
  2. 2
      docker/gunicorn_start.sh

1
docker/Dockerfile

@ -14,7 +14,6 @@ ENV BUILD_PACKAGES apt-utils apt-file libpq-dev graphviz-dev build-essential git
libcairo2-dev software-properties-common python3-setuptools python3-pip
## NAO EH PRA TIRAR O vim DA LISTA DE COMANDOS INSTALADOS!!!
## PRECISO DELES PARA VISUALIZAR/BUSCAR BUGS E DIFERENCAS DENTRO DOS CONTAINERS!
ENV RUN_PACKAGES graphviz python3-lxml python3-magic postgresql-client python3-psycopg2 \
poppler-utils curl jq bash vim python3-venv tzdata nodejs \
fontconfig ttf-dejavu python nginx

2
docker/gunicorn_start.sh

@ -25,7 +25,7 @@ USER=`whoami` # the user to run as (*)
GROUP=`whoami` # the group to run as (*)
NUM_WORKERS=10 # how many worker processes should Gunicorn spawn (*)
# NUM_WORKERS = 2 * CPUS + 1
TIMEOUT=60
TIMEOUT=300
MAX_REQUESTS=100 # number of requests before restarting worker
DJANGO_SETTINGS_MODULE=sapl.settings # which settings file should Django use (*)
DJANGO_WSGI_MODULE=sapl.wsgi # WSGI module name (*)

Loading…
Cancel
Save