mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-06 05:55:42 +00:00
refactor: update docker volume mapping, add collectstatic to startup command, and normalize settings.py formatting
This commit is contained in:
@@ -13,9 +13,9 @@ services:
|
||||
- ALLOWED_HOSTS=*
|
||||
|
||||
volumes:
|
||||
- /DATA/AppData/rrbec-api-django/data:/app/data
|
||||
- /DATA/AppData/rrbec-api-django/media:/app/media
|
||||
- /DATA/AppData/rrbec-api-django/static:/app/staticfiles
|
||||
- /DATA/AppData/rrbec-api-django:/app
|
||||
- /DATA/AppData/rrbec-api-django/static:/app/static
|
||||
- /DATA/AppData/rrbec-api-django/db:/app/db
|
||||
|
||||
working_dir: /app
|
||||
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"]
|
||||
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 collectstatic --noinput && python manage.py migrate --noinput && gunicorn gestaoRaul.wsgi:application --bind 0.0.0.0:8000"]
|
||||
Reference in New Issue
Block a user