aboutsummaryrefslogtreecommitdiff
path: root/.devcontainer/devcontainer.json
diff options
context:
space:
mode:
Diffstat (limited to '.devcontainer/devcontainer.json')
-rw-r--r--.devcontainer/devcontainer.json13
1 files changed, 3 insertions, 10 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 438255d..6605c26 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -1,6 +1,5 @@
// 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.194.0/containers/javascript-node-mongo
-// Update the VARIANT arg in docker-compose.yml to pick a Node.js version: 10, 12, 14
{
"name": "Ubuntu, Node.js & Mongo DB",
"dockerComposeFile": "docker-compose.yml",
@@ -10,18 +9,12 @@
// Set *default* container specific settings.json values on container create.
"settings": {},
- // Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
- "mongodb.mongodb-vscode"
+ "mongodb.mongodb-vscode",
+ "esbenp.prettier-vscode"
],
-
- // Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [3000, 27017],
-
- // Use 'postCreateCommand' to run commands after the container is created.
- // "postCreateCommand": "yarn install",
-
- // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
+ "postCreateCommand": "sudo locale-gen 'en_US.UTF-8'; sudo chown node:node node_modules; yarn install",
"remoteUser": "node"
} \ No newline at end of file