added env file
parent
3a77feb7aa
commit
1c4e49e36c
|
@ -4,6 +4,7 @@ FROM python:3.10
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
ENV PYTHONDONTWRITEBYTECODE 1
|
ENV PYTHONDONTWRITEBYTECODE 1
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
ENV DEBUG=${DEBUG}
|
||||||
|
|
||||||
# Set the working directory in the container
|
# Set the working directory in the container
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
|
@ -8,9 +8,9 @@ services:
|
||||||
- .:/app
|
- .:/app
|
||||||
- ./media:/app/media
|
- ./media:/app/media
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "${PORT}:8000"
|
||||||
environment:
|
environment:
|
||||||
- DEBUG=1
|
- DEBUG=${DEBUG}
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
media:
|
media:
|
Loading…
Reference in New Issue