|
2 | 2 | // https://github.com/microsoft/vscode-dev-containers/blob/main/containers/javascript-node-postgres/.devcontainer/devcontainer.json |
3 | 3 |
|
4 | 4 | { |
5 | | - "name": "Node.js & PostgreSQL", |
6 | | - "dockerComposeFile": "docker-compose.yml", |
7 | | - "service": "app", |
8 | | - "workspaceFolder": "/workspace", |
9 | | - "features": { |
10 | | - "ghcr.io/devcontainers/features/common-utils:2": { |
11 | | - "installZsh": "true", |
12 | | - "username": "node", |
13 | | - "upgradePackages": "true" |
14 | | - }, |
15 | | - "ghcr.io/devcontainers/features/node:1": { |
16 | | - "version": "none" |
17 | | - }, |
18 | | - "ghcr.io/devcontainers/features/git:1": { |
19 | | - "version": "latest", |
20 | | - "ppa": "false" |
21 | | - } |
22 | | - }, |
| 5 | + "name": "Node.js & PostgreSQL", |
| 6 | + "dockerComposeFile": "docker-compose.yml", |
| 7 | + "service": "app", |
| 8 | + "workspaceFolder": "/workspace", |
| 9 | + "features": { |
| 10 | + "ghcr.io/devcontainers/features/common-utils:2": { |
| 11 | + "installZsh": "true", |
| 12 | + "username": "node", |
| 13 | + "upgradePackages": "true" |
| 14 | + }, |
| 15 | + "ghcr.io/devcontainers/features/node:1": { |
| 16 | + "version": "none" |
| 17 | + }, |
| 18 | + "ghcr.io/devcontainers/features/git:1": { |
| 19 | + "version": "latest", |
| 20 | + "ppa": "false" |
| 21 | + } |
| 22 | + }, |
23 | 23 |
|
24 | | - // Configure tool-specific properties. |
25 | | - "customizations": { |
26 | | - // Configure properties specific to VS Code. |
27 | | - "vscode": { |
28 | | - // Add the IDs of extensions you want installed when the container is created. |
29 | | - "extensions": [ |
30 | | - "dbaeumer.vscode-eslint", |
31 | | - "esbenp.prettier-vscode", |
32 | | - "ms-vsliveshare.vsliveshare" |
33 | | - ] |
34 | | - } |
35 | | - }, |
| 24 | + // Configure tool-specific properties. |
| 25 | + "customizations": { |
| 26 | + // Configure properties specific to VS Code. |
| 27 | + "vscode": { |
| 28 | + // Add the IDs of extensions you want installed when the container is created. |
| 29 | + "extensions": [ |
| 30 | + "dbaeumer.vscode-eslint", |
| 31 | + "esbenp.prettier-vscode", |
| 32 | + "ms-vsliveshare.vsliveshare" |
| 33 | + ] |
| 34 | + } |
| 35 | + }, |
36 | 36 |
|
37 | | - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
38 | | - // This can be used to network with other containers or with the host. |
39 | | - "forwardPorts": [3001, 3002, 5432, 5555], |
| 37 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 38 | + // This can be used to network with other containers or with the host. |
| 39 | + "forwardPorts": [3001, 3002, 5432, 5555], |
40 | 40 |
|
41 | | - // Use 'postCreateCommand' to run commands after the container is created. |
42 | | - // "postCreateCommand": "yarn install", |
| 41 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 42 | + // "postCreateCommand": "yarn install", |
43 | 43 |
|
44 | | - // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
45 | | - "remoteUser": "node", |
| 44 | + // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 45 | + "remoteUser": "node", |
46 | 46 |
|
47 | | - "postCreateCommand": "./.devcontainer/postCreateCommand.sh", |
48 | | - "postAttachCommand": "./codespace-instructions.sh" |
| 47 | + "postCreateCommand": "./.devcontainer/postCreateCommand.sh", |
| 48 | + "postAttachCommand": "./codespace-instructions.sh" |
49 | 49 | } |
0 commit comments