chore: update container configuration, enable debug mode, and refine deployment command in docker-compose

This commit is contained in:
2026-04-05 11:20:51 -03:00
parent 19c6fe2ad8
commit 405033d1bf
2 changed files with 7 additions and 10 deletions

View File

@@ -3,22 +3,19 @@ version: '3.8'
services:
django_app:
image: python:3.12-slim
container_name: rrbec_api
container_name: rrbec_api_django
ports:
- "8069:8000"
restart: unless-stopped
environment:
- DEBUG=False
- DEBUG=True
- ALLOWED_HOSTS=*
volumes:
- ./data:/app/data
- ./media:/app/media
- /DATA/AppData/rrbec-api-django/data:/app/data
- /DATA/AppData/rrbec-api-django/media:/app/media
- /DATA/AppData/rrbec-api-django/static:/app/staticfiles
working_dir: /app
command: >
sh -c "git clone --branch api https://github.com/welton89/RRBEC.git . &&
pip install -r requirements.txt &&
python gestaoRaul/manage.py migrate --noinput &&
gunicorn gestaoRaul.wsgi:application --bind 0.0.0.0:8000"
command: ["/bin/sh", "-c", "apt-get update && apt-get install -y git && rm -rf app_clone && git clone --branch api --depth 1 https://github.com/welton89/RRBEC.git app_clone && cp -r app_clone/* . && rm -rf app_clone && pip install -r requirements.txt && python manage.py migrate --noinput && gunicorn gestaoRaul.wsgi:application --bind 0.0.0.0:8000"]

View File

@@ -7,5 +7,5 @@ django-pwa==2.0.1
gunicorn==23.0.0
pillow==11.1.0
python-dotenv==1.1.0
python-dotenv==1.1.0
whitenoise==6.11.0
websockets==15.0