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