// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: // https://github.com/microsoft/vscode-dev-containers/tree/v0.231.6/containers/javascript-node-postgres // Update the VARIANT arg in docker-compose.yml to pick a Node.js version { "name": "Wiki.js Dev", "dockerComposeFile": "docker-compose.yml", "service": "app", "workspaceFolder": "/workspace", "shutdownAction": "stopCompose", // Set *default* container specific settings.json values on container create. "settings": { "terminal.integrated.defaultProfile.linux": "zsh", "sqltools.connections": [ // Default connection to dev DB container { "name": "Local Dev", "server": "db", "port": 5432, "database": "postgres", "username": "postgres", "password": "postgres", "driver": "PostgreSQL", "askForPassword": false, "connectionTimeout": 60 } ] }, // Add the IDs of extensions you want installed when the container is created. "extensions": [ "arcanis.vscode-zipfs", "dbaeumer.vscode-eslint", "eamodio.gitlens", "johnsoncodehk.volar", "oderwat.indent-rainbow", "redhat.vscode-yaml", "visualstudioexptteam.vscodeintellicode", "editorconfig.editorconfig", "lokalise.i18n-ally", "mrmlnc.vscode-duplicate", "mtxr.sqltools-driver-pg", "mutantdino.resourcemonitor", "wayou.vscode-todo-highlight" ], // Use 'forwardPorts' to make a list of ports inside the container available locally. // This can be used to network with other containers or with the host. "forwardPorts": [3000, 5432, 8000], "portsAttributes": { "3000": { "label": "Wiki.js", "onAutoForward": "notify" }, "5432": { "label": "PostgreSQL", "onAutoForward": "silent" }, "8000": { "label": "PGAdmin", "onAutoForward": "silent" } }, // Use 'postCreateCommand' to run commands after the container is created. "postCreateCommand": "/docker-init.sh", // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. // "remoteUser": "node", "features": { "common": { "installZsh": true, "installOhMyZsh": true, "upgradePackages": true }, "github-cli": "latest" } }