kredens/.devcontainer/devcontainer.json

77 lines
1.6 KiB
JSON
Raw Normal View History

2025-01-23 02:58:00 +00:00
{
"name": "Kredens Dev Container",
"build": {
"dockerfile": "../dockerfiles/devcontainer.dockerfile",
"context": ".."
},
2025-01-23 05:15:57 +00:00
"forwardPorts": [
80, 443, 2019
],
"portsAttributes": {
"80": {
"label": "Plaintext",
"protocol": "http",
"elevateIfNeeded": true
},
"443": {
"label": "Encrypted",
"protocol": "https",
"elevateIfNeeded": true
},
"2019": {
"label": "Admin API",
"protocol": "http",
}
},
2025-01-23 02:58:00 +00:00
"features": {
2025-01-23 05:15:57 +00:00
"ghcr.io/devcontainers/features/docker-in-docker:2": {
2025-01-23 02:58:00 +00:00
"installDockerComposeSwitch": false
},
"ghcr.io/devcontainers/features/node:1": {
"nodeGypDependencies": true,
"installYarnUsingApt": true,
"version": "lts",
"pnpmVersion": "latest",
"nvmVersion": "latest"
},
"ghcr.io/va-h/devcontainers-features/uv:1": {
"shellautocompletion": true,
"version": "latest"
}
},
"onCreateCommand": "${containerWorkspaceFolder}/.devcontainer/onCreate.sh",
"postAttachCommand": "${containerWorkspaceFolder}/.devcontainer/postAttach.sh",
"remoteEnv": {
"WORKSPACE_FOLDER": "${containerWorkspaceFolder}",
2025-01-23 05:15:57 +00:00
"UV_LINK_MODE": "copy"
2025-01-23 02:58:00 +00:00
},
"mounts": [
{
"type": "volume",
"source": "${devcontainerId}-venv",
"target": "${containerWorkspaceFolder}/.venv"
},
{
"type": "volume",
"source": "${devcontainerId}-node-modules",
"target": "${containerWorkspaceFolder}/node_modules"
2025-01-23 05:15:57 +00:00
},
{
"type": "volume",
"source": "${devcontainerId}-bashhistory",
"target": "/commandhistory"
2025-01-23 02:58:00 +00:00
}
2025-01-23 05:15:57 +00:00
2025-01-23 02:58:00 +00:00
],
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.debugpy",
"ms-azuretools.vscode-docker"
]
}
}
}