added env file

main
zacc806 2024-01-22 16:20:37 +06:00
parent 3a77feb7aa
commit 1c4e49e36c
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -8,9 +8,9 @@ services:
- .:/app
- ./media:/app/media
ports:
- "8000:8000"
- "${PORT}:8000"
environment:
- DEBUG=1
- DEBUG=${DEBUG}
volumes:
media: