82 lines
2.0 KiB
JSON
82 lines
2.0 KiB
JSON
{
|
|
"name": "NxMesh Dev Environment",
|
|
"dockerComposeFile": "docker-compose.yml",
|
|
"service": "app",
|
|
"workspaceFolder": "/workspace",
|
|
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {
|
|
"version": "latest",
|
|
"enableNonRootDocker": "true",
|
|
"moby": "true"
|
|
},
|
|
"ghcr.io/devcontainers/features/common-utils:2": {
|
|
"installZsh": "true",
|
|
"username": "vscode",
|
|
"userUid": "1000",
|
|
"userGid": "1000",
|
|
"upgradePackages": "true"
|
|
},
|
|
"ghcr.io/devcontainers/features/rust:1": {
|
|
"version": "stable",
|
|
"profile": "default",
|
|
"cargoHome": "/usr/local/cargo"
|
|
},
|
|
"ghcr.io/devcontainers/features/node:1": {
|
|
"version": "lts",
|
|
"nodeGypDependencies": true,
|
|
"nvmInstallPath": "/usr/local/share/nvm"
|
|
},
|
|
"ghcr.io/guiyomh/features/just:0": {},
|
|
"ghcr.io/devcontainers-extra/features/bun": {
|
|
"version": "latest"
|
|
},
|
|
"ghcr.io/devcontainers-extra/features/act": {}
|
|
},
|
|
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"rust-lang.rust-analyzer",
|
|
"vadimcn.vscode-lldb",
|
|
"bradlc.vscode-tailwindcss",
|
|
"esbenp.prettier-vscode",
|
|
"dbaeumer.vscode-eslint",
|
|
"ms-azuretools.vscode-docker",
|
|
"nefrob.vscode-just-syntax"
|
|
],
|
|
"settings": {
|
|
"rust-analyzer.cargo.features": "all",
|
|
// both clippy and fmt
|
|
"rust-analyzer.checkOnSave.command": "clippy"
|
|
}
|
|
}
|
|
},
|
|
|
|
"forwardPorts": [3000, 8080, 5432, 80, 443],
|
|
"portsAttributes": {
|
|
"3000": {
|
|
"label": "Vite Dev Server",
|
|
"onAutoForward": "notify"
|
|
},
|
|
"8080": {
|
|
"label": "Rust Backend API",
|
|
"onAutoForward": "notify"
|
|
},
|
|
"5432": {
|
|
"label": "PostgreSQL",
|
|
"onAutoForward": "silent"
|
|
},
|
|
"80": {
|
|
"label": "Nginx",
|
|
"onAutoForward": "notify"
|
|
}
|
|
},
|
|
|
|
"postCreateCommand": "just setup",
|
|
"postStartCommand": "just start-services",
|
|
|
|
"remoteUser": "vscode",
|
|
"updateRemoteUserUID": true
|
|
}
|