Files
photos/.devcontainer/devcontainer.json
2020-10-16 07:43:11 +00:00

54 lines
1.7 KiB
JSON

// 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.140.1/containers/javascript-node-postgres
// Update the VARIANT arg in docker-compose.yml to pick a Node.js version: 10, 12, 14
{
"name": "DevEnv",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspace",
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"sqltools.connections": [
{
"name": "MySQL",
"server": "db",
"driver": "MySQL",
"port": 3306,
"database": "photos",
"username": "photos",
"askForPassword": false,
"password": "photos",
"connectionTimeout": 15
},
{
"name": "MySQL",
"server": "dbtest",
"driver": "MySQL",
"port": 3306,
"database": "photos_test",
"username": "photos",
"askForPassword": false,
"password": "photos",
"connectionTimeout": 15
}
]
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
"mtxr.sqltools",
"mtxr.sqltools-driver-mysql",
"visualstudioexptteam.vscodeintellicode",
"rvest.vs-code-prettier-eslint",
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
1234,
3000
],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm config set unsafe-perm=true && npm i && cd frontend && npm i",
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
}