feat: add debugpy configuration for Docker backend and update requirements
This commit is contained in:
parent
95dad28d53
commit
c3044638b5
3 changed files with 25 additions and 1 deletions
20
.vscode/launch.json
vendored
Normal file
20
.vscode/launch.json
vendored
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
debugpy==1.8.1
|
||||
fastapi==0.115.0
|
||||
uvicorn==0.30.6
|
||||
SQLAlchemy==2.0.34
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue