Update devcontainer configuration to use pnpm and adjust volume mounting

This commit is contained in:
Hussar
2026-04-12 21:35:09 +00:00
parent f239088cd0
commit 64501e7efa
4 changed files with 15205 additions and 5 deletions

View File

@@ -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'"
} }

View File

@@ -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
View File

@@ -0,0 +1,2 @@
node_modules
.pnpm-store

15196
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff