docker: healthcheck

This commit is contained in:
2025-04-19 20:29:40 -03:00
parent c1d88b586a
commit e13db8d469
2 changed files with 10 additions and 3 deletions

View File

@@ -8,11 +8,10 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN python gestaoRaul/manage.py collectstatic --noinput
RUN python gestaoRaul/manage.py migrate --noinput
# RUN python gestaoRaul/manage.py migrate --noinput
WORKDIR /app/gestaoRaul
CMD [ "gunicorn", "gestaoRaul.wsgi:application", "--bind", "0.0.0.0:8000" ]
CMD [ "gunicorn", "-w", "4", "--timeout", "15", "gestaoRaul.wsgi:application", "--bind", "0.0.0.0:8000" ]