added development yml file for live reload

This commit is contained in:
WGAVermeer
2026-03-06 15:07:50 +01:00
parent 76a5b2d98f
commit 596e3fcfca
3 changed files with 9 additions and 5 deletions

View File

@@ -4,10 +4,6 @@ RUN mkdir /app
WORKDIR /app WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
RUN pip install --upgrade pip RUN pip install --upgrade pip
COPY requirements.txt /app/ COPY requirements.txt /app/
@@ -16,7 +12,6 @@ COPY ./app/ /app/
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 8000 EXPOSE 8000
CMD ["gunicorn", "website.wsgi:application"] CMD ["gunicorn", "website.wsgi:application"]

View File

@@ -3,3 +3,7 @@ services:
build: . build: .
ports: ports:
- 8000:8000 - 8000:8000
environment:
- PYTHONDONTWRITEBYTECODE=1
- PYTHONUNBUFFERED=1
restart: unless-stopped

5
docker-compose.dev.yml Normal file
View File

@@ -0,0 +1,5 @@
services:
web:
volumes:
- ./app:/app