// 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.245.2/containers/go-postgres { "name": "Go & PostgreSQL", "dockerComposeFile": "docker-compose.yml", "service": "app", "workspaceFolder": "/workspace", // Configure tool-specific properties. "customizations": { // Configure properties specific to VS Code. "vscode": { // Set *default* container specific settings.json values on container create. "settings": { "go.toolsManagement.checkForUpdates": "local", "go.useLanguageServer": true, "go.gopath": "/go", "go.goroot": "/usr/local/go" }, // Add the IDs of extensions you want installed when the container is created. "extensions": [ "golang.Go", "ms-vscode.makefile-tools", "donjayamanne.githistory", "eamodio.gitlens", "mhutchie.git-graph" ] } }, // Use 'forwardPorts' to make a list of ports inside the container available locally. "forwardPorts": [5432], // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "go version", // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode", "features": { "git": "os-provided", "git-lfs": "latest" }, "mounts": [ "source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached" ] }