-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathdevcontainer.json
More file actions
43 lines (38 loc) · 1.01 KB
/
devcontainer.json
File metadata and controls
43 lines (38 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Update the VARIANT arg in docker-compose.yml to pick a Node.js version
{
"name": "Node.js && Redis && MySQL",
"dockerComposeFile": "../docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
]
}
},
// Forwards ports
"forwardPorts": [
8080
],
"portsAttributes": {
"8080": {
"label": "Adminer",
"onAutoForward": "notify"
}
},
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": [
"bash .devcontainer/scripts/postCreateCommand.sh"
],
// Container Env
"containerEnv": {
"MYSQL_HOST": "mysql",
"MYSQL_USER": "root",
"MYSQL_PASSWORD": "root"
},
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
}