feat: Introduce Docker Compose setup for a Django application including PostgreSQL, Redis, and Celery services.

This commit is contained in:
2026-01-17 18:49:20 +03:00
parent 0ccef43ef6
commit 726cf65664
2 changed files with 7 additions and 7 deletions

View File

@@ -28,7 +28,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
WORKDIR /app
# Копируем requirements и устанавливаем зависимости
COPY requirements.txt .
COPY myproject/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Копируем проект
@@ -42,11 +42,11 @@ RUN useradd -m -u 1000 appuser
# Установка gosu для безопасного понижения привилегий
RUN set -eux; \
apt-get update; \
apt-get install -y gosu; \
rm -rf /var/lib/apt/lists/*; \
# Проверка работы gosu
gosu nobody true
apt-get update; \
apt-get install -y gosu; \
rm -rf /var/lib/apt/lists/*; \
# Проверка работы gosu
gosu nobody true
# Копируем entrypoint скрипт
COPY docker/entrypoint.sh /entrypoint.sh