Update dev container workspace path and mounting configuration

Moves the workspace volume mount from the docker-compose file to devcontainer.json and standardizes the workspace path to /workspace.
This commit is contained in:
Hussar
2026-04-12 18:20:49 +01:00
parent 9213df4828
commit f239088cd0
2 changed files with 2 additions and 3 deletions

View File

@@ -5,7 +5,8 @@
"docker-compose.devcontainer.yml" "docker-compose.devcontainer.yml"
], ],
"service": "workspace", "service": "workspace",
"workspaceFolder": "/workspaces/fog", "workspaceFolder": "/workspace",
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
"runServices": ["workspace", "postgres", "redis"], "runServices": ["workspace", "postgres", "redis"],
"shutdownAction": "stopCompose", "shutdownAction": "stopCompose",
"remoteUser": "node", "remoteUser": "node",

View File

@@ -4,8 +4,6 @@ services:
workspace: workspace:
image: mcr.microsoft.com/devcontainers/javascript-node:1-20-bookworm image: mcr.microsoft.com/devcontainers/javascript-node:1-20-bookworm
command: sleep infinity command: sleep infinity
volumes:
- ..:/workspaces/fog:cached
depends_on: depends_on:
postgres: postgres:
condition: service_healthy condition: service_healthy