feat(v4): add docker-compose and production-ready application

This commit is contained in:
2026-07-09 10:15:44 +03:30
parent 2112e00982
commit ece63caa22
13 changed files with 482 additions and 30 deletions

View File

@@ -28,7 +28,7 @@ services:
build: ./backend
command: sh -c "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn enhancer_project.wsgi:application --bind 0.0.0.0:8000"
env_file:
- ./backend/.env
- ${BACKEND_ENV_FILE:-./backend/.env}
environment:
DJANGO_DEBUG: ${DJANGO_DEBUG:-0}
DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY:-change-me}
@@ -61,7 +61,7 @@ services:
build: ./backend
command: celery -A enhancer_project worker --loglevel=info
env_file:
- ./backend/.env
- ${BACKEND_ENV_FILE:-./backend/.env}
environment:
DJANGO_DEBUG: ${DJANGO_DEBUG:-0}
DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY:-change-me}