Fix docker config

This commit is contained in:
Hannah dagemark 2026-09-01 11:42:07 +02:00
commit b073a062b5
2 changed files with 15 additions and 0 deletions

View file

@ -8,4 +8,6 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY ./app /code/app
RUN mkdir -p /code/data
CMD ["fastapi", "run", "app/main.py", "--proxy-headers", "--port", "80"]

13
docker-compose.yml Normal file
View file

@ -0,0 +1,13 @@
services:
backend:
build:
context: .
dockerfile: Dockerfile
container_name: website-backend
restart: unless-stopped
expose:
- "8000"
env_file:
- .env
volumes:
- C:/Users/hanna/Desktop/Dagemark-Backend/data:/code/data