mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-06 05:55:42 +00:00
21 lines
812 B
YAML
21 lines
812 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
django_app:
|
|
image: python:3.12-slim
|
|
container_name: rrbec_api_django
|
|
ports:
|
|
- "8069:8000"
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
- DEBUG=True
|
|
- ALLOWED_HOSTS=*
|
|
|
|
volumes:
|
|
- /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 collectstatic --noinput && python manage.py migrate --noinput && gunicorn gestaoRaul.wsgi:application --bind 0.0.0.0:8000"] |