|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: |
2 | | -// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.3/containers/typescript-node |
| 2 | +// https://github.com/microsoft/vscode-dev-containers/tree/v0.208.0/containers/javascript-node-mongo |
| 3 | +// Update the VARIANT arg in docker-compose.yml to pick a Node.js version |
3 | 4 | { |
4 | | - "name": "Notifire ENV", |
5 | | - "runArgs": ["--init"], |
6 | | - "build": { |
7 | | - "dockerfile": "Dockerfile", |
8 | | - "args": { |
9 | | - "VARIANT": "14" |
10 | | - } |
11 | | - }, |
| 5 | + "name": "Notifire", |
| 6 | + "dockerComposeFile": "docker-compose.yml", |
| 7 | + "service": "app", |
| 8 | + "workspaceFolder": "/workspace", |
12 | 9 |
|
13 | | - "postCreateCommand": ["yarn install && yarn bootstrap"], |
| 10 | + // Set *default* container specific settings.json values on container create. |
| 11 | + "settings": {}, |
14 | 12 |
|
15 | | - // Set *default* container specific settings.json values on container create. |
16 | | - "settings": {}, |
| 13 | + // Add the IDs of extensions you want installed when the container is created. |
| 14 | + "extensions": [ |
| 15 | + "dbaeumer.vscode-eslint", |
| 16 | + "mongodb.mongodb-vscode" |
| 17 | + ], |
17 | 18 |
|
18 | | - // Add the IDs of extensions you want installed when the container is created. |
19 | | - "extensions": ["dbaeumer.vscode-eslint"], |
| 19 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 20 | + "forwardPorts": [4200, 3000, 27017], |
20 | 21 |
|
21 | | - // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
22 | | - "remoteUser": "node" |
| 22 | + "onCreateCommand": ["yarn", "install"], |
| 23 | + "postCreateCommand": ["yarn", "start"], |
| 24 | + |
| 25 | + // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 26 | + "remoteUser": "node", |
| 27 | + "features": { |
| 28 | + "github-cli": "latest" |
| 29 | + } |
23 | 30 | } |
0 commit comments