docker: criado docker-compose com o django_app e o nginx_server como proxy reverso e servindo statics files em um volume compartilhado

This commit is contained in:
2025-04-13 21:50:47 -03:00
parent 3a3c804b3c
commit 44cfa49455
12 changed files with 81 additions and 81 deletions

View File

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