1
+ {
2
+ "name" : " CodiMD" ,
3
+ "dockerComposeFile" : " docker-compose.yml" ,
4
+ "service" : " app" ,
5
+ "workspaceFolder" : " /workspace" ,
6
+
7
+ // Set *default* container specific settings.json values on container create.
8
+ "settings" : {
9
+ "terminal.integrated.shell.linux" : " /bin/zsh" ,
10
+ "sqltools.connections" : [{
11
+ "name" : " Container Database" ,
12
+ "driver" : " PostgreSQL" ,
13
+ "previewLimit" : 50 ,
14
+ "server" : " localhost" ,
15
+ "port" : 5432 ,
16
+ "database" : " codimd" ,
17
+ "username" : " codimd" ,
18
+ "password" : " codimd"
19
+ }],
20
+ },
21
+
22
+ // Add the IDs of extensions you want installed when the container is created.
23
+ "extensions" : [
24
+ " dbaeumer.vscode-eslint" ,
25
+ " visualstudioexptteam.vscodeintellicode" ,
26
+ " christian-kohler.path-intellisense" ,
27
+ " standard.vscode-standard" ,
28
+ " mtxr.sqltools" ,
29
+ " mtxr.sqltools-driver-pg" ,
30
+ " eamodio.gitlens" ,
31
+ " codestream.codestream" ,
32
+ " github.vscode-pull-request-github" ,
33
+ " cschleiden.vscode-github-actions" ,
34
+ " hbenl.vscode-mocha-test-adapter" ,
35
+ " hbenl.vscode-test-explorer"
36
+ ],
37
+
38
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
39
+ // "forwardPorts": [],
40
+
41
+ "portsAttributes" : {
42
+ "3000" : {
43
+ "label" : " CodiMD server" ,
44
+ "onAutoForward" : " notify"
45
+ },
46
+ "5432" : {
47
+ "label" : " PostgreSQL" ,
48
+ "onAutoForward" : " notify"
49
+ }
50
+ },
51
+
52
+ // Use 'postCreateCommand' to run commands after the container is created.
53
+ // "postCreateCommand": "yarn install",
54
+ "postCreateCommand" : " sudo chown -R node:node node_modules && /workspace/bin/setup" ,
55
+
56
+ // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
57
+ "remoteUser" : " node"
58
+ }
0 commit comments