feat: add debugpy configuration for Docker backend and update requirements

This commit is contained in:
Felix Zett 2025-08-30 20:19:55 +02:00
parent 95dad28d53
commit c3044638b5
3 changed files with 25 additions and 1 deletions

20
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,20 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Backend (Docker)",
"type": "debugpy",
"request": "attach",
"connect": {
"host": "localhost",
"port": 5678
},
"pathMappings": [
{
"localRoot": "${workspaceFolder}/backend",
"remoteRoot": "/app/backend"
}
]
}
]
}

View file

@ -1,4 +1,4 @@
debugpy==1.8.1
fastapi==0.115.0
uvicorn==0.30.6
SQLAlchemy==2.0.34

View file

@ -19,10 +19,14 @@ services:
- db
ports:
- "8000:8000"
- "5678:5678" # Port für Debugger
volumes:
- ./:/app
environment:
- PYTHONUNBUFFERED=1
command: >
python -m debugpy --listen 0.0.0.0:5678 --wait-for-client
-m uvicorn backend.main:app --host 0.0.0.0 --port 8000 --reload
frontend:
build:
context: ./frontend