Update devcontainer configuration to use pnpm and adjust volume mounting
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
],
|
],
|
||||||
"service": "workspace",
|
"service": "workspace",
|
||||||
"workspaceFolder": "/workspace",
|
"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",
|
||||||
@@ -29,6 +28,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"forwardPorts": [3333, 4200, 5432, 6379],
|
"forwardPorts": [3333, 4200, 5432, 6379],
|
||||||
"postCreateCommand": "npm install",
|
"postCreateCommand": "pnpm install",
|
||||||
"postStartCommand": "echo 'Devcontainer ready. Run: npm run start:api and npm run start:panel'"
|
"postStartCommand": "echo 'Devcontainer ready. Run: pnpm run start:api and pnpm run start:panel'"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
version: "3.9"
|
|
||||||
|
|
||||||
services:
|
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
|
||||||
|
# Bind mount repo root into the container. With multiple compose files, Dev
|
||||||
|
# Containers resolves this relative to the first file in devcontainer.json
|
||||||
|
# (../docker-compose.yml at repo root), so "." is the project root.
|
||||||
|
volumes:
|
||||||
|
- .:/workspace:cached
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|||||||
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
node_modules
|
||||||
|
.pnpm-store
|
||||||
15196
pnpm-lock.yaml
generated
Normal file
15196
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user