// See https://aka.ms/vscode-remote/devcontainer.json for format details. { "dockerComposeFile": "../docker-compose.yml", "service": "devcontainer", "features": { "ghcr.io/devcontainers/features/docker-outside-of-docker:1": { "moby": false } }, "updateRemoteUserUID": true, "workspaceFolder": "${localWorkspaceFolder}", "initializeCommand": [".devcontainer/scripts/devcontainer_initialize.sh"], "postCreateCommand": ["yarn", "install"], "postAttachCommand": { "preview": "yarn build && yarn preview" }, "forwardPorts": [10001, "homeassistant:8123", "frigate:5000"], "portsAttributes": { "10001": { "label": "Vite", "onAutoForward": "silent" }, "homeassistant:8123": { "label": "Home Assistant", "onAutoForward": "silent" }, "frigate:5000": { "label": "Frigate", "onAutoForward": "silent" } }, "customizations": { "vscode": { "extensions": [ "dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "runem.lit-plugin", "davidanson.vscode-markdownlint", "redhat.vscode-yaml", "vitest.explorer", "inlang.vs-code-extension", "YoavBls.pretty-ts-errors", "github.vscode-pull-request-github", "github.vscode-github-actions", "ms-azuretools.vscode-docker" ], "settings": { "task.allowAutomaticTasks": "on", "files.eol": "\n", "editor.tabSize": 2, "editor.formatOnPaste": false, "editor.formatOnSave": true, "editor.formatOnType": true, "files.trimTrailingWhitespace": true, "[json][jsonc][yaml][markdown][typescript][javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" } } } } }