Files
familienarchiv/.devcontainer/devcontainer.json
Marcel 0cb8812692 fix: correct devcontainer workspace path mismatch
Volume was mounting ./backend to /workspaces/backend, but devcontainer.json
pointed VS Code to /workspaces/familienarchiv — causing the broken path shown
in Remote Explorer.

Now mounts the full project root to /workspaces/familienarchiv, which matches
the workspaceFolder variable. Also gives container access to frontend/ for
running npm run generate:api without leaving the devcontainer.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 13:44:06 +01:00

39 lines
1.1 KiB
JSON

{
"name": "Java Backend",
"dockerComposeFile": [
"../docker-compose.yml"
],
"service": "backend",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
// WICHTIG: Features, die im Container installiert werden sollen
"features": {
"ghcr.io/devcontainers/features/java:1": {
"version": "21",
"installMaven": "true",
"installGradle": "false"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "24"
}
},
// VS Code Extensions, die automatisch im Container installiert werden
"customizations": {
"vscode": {
"extensions": [
"vscjava.vscode-java-pack", // Java Extension Pack (Pflicht!)
"vmware.vscode-spring-boot", // Spring Boot Tools
"gabrielbb.vscode-lombok", // Lombok Support (falls genutzt)
"humao.rest-client" // Um API Calls direkt zu testen
]
}
},
// Port 8080 weiterleiten, damit Sie http://localhost:8080 im Browser aufrufen können
"forwardPorts": [8080],
// Nach dem Erstellen: User auf 'vscode' setzen (nicht root, für Sicherheit)
"remoteUser": "vscode"
}