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:
@@ -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",
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user