From 1c4e49e36c4da0bcbdae0f07c08a7134b85f54db Mon Sep 17 00:00:00 2001 From: zacc806 Date: Mon, 22 Jan 2024 16:20:37 +0600 Subject: [PATCH] added env file --- Dockerfile | 1 + docker-compose.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6054ca6..e47d852 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ FROM python:3.10 # Set environment variables ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 +ENV DEBUG=${DEBUG} # Set the working directory in the container WORKDIR /app diff --git a/docker-compose.yml b/docker-compose.yml index 5c4e65a..fcfe9dd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,9 +8,9 @@ services: - .:/app - ./media:/app/media ports: - - "8000:8000" + - "${PORT}:8000" environment: - - DEBUG=1 + - DEBUG=${DEBUG} volumes: media: \ No newline at end of file