feat: Introduce Docker Compose setup for a Django application including PostgreSQL, Redis, and Celery services.
This commit is contained in:
@@ -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
|
||||
|
||||
# Копируем проект
|
||||
|
||||
@@ -5,7 +5,7 @@ services:
|
||||
container_name: mix_postgres
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- /Volume1/DockerAppsData/mixapp/app/myproject/docker/.env.docker
|
||||
- .env.docker
|
||||
volumes:
|
||||
- /Volume1/DockerAppsData/mixapp/postgres:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
|
||||
Reference in New Issue
Block a user