/
devcontainer.json
104 lines (97 loc) · 3.09 KB
/
devcontainer.json
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
{
"name": "Node.js",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/javascript-node:0-18",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/azure/azure-dev/azd:latest": {},
"ghcr.io/devcontainers/features/node:1": {
"version": "18.15.0"
},
"ghcr.io/devcontainers-contrib/features/postgres-asdf:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"version": "20.10.23",
"moby": "false",
"azureDnsAutoDetection": "false",
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers/features/azure-cli:1": {
"version": "latest",
"installBicep": true
},
"ghcr.io/devcontainers/features/github-cli:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/sshd:1": {
"version": "latest"
}
},
// add labels to ports that are being used
// this will make it easier to identify what is running on each port
// it's also used by nightly builds to check all services are running as expected
"portsAttributes": {
"4280": {
"label": "Portal App",
"onAutoForward": "notify"
},
"3000": {
"label": "Blog",
"onAutoForward": "notify"
},
"1337": {
"label": "Strapi CMS",
"onAutoForward": "notify"
},
"4242": {
"label": "Stripe API",
"onAutoForward": "notify"
},
"4300": {
"label": "Web PubSub API",
"onAutoForward": "notify"
},
"4200": {
"label": "Angular",
"onAutoForward": "notify"
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// Note: do not forward 4200 as it's being proxied by 4280
"forwardPorts": [4280, 4242, 3000, 1337],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "bash .devcontainer/post-create-command.sh",
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"humao.rest-client",
"ms-azuretools.vscode-bicep",
"ms-azuretools.vscode-cosmosdb",
"ms-azuretools.vscode-azurecontainerapps",
"IronGeek.vscode-env",
"timonwong.shellcheck",
"ms-azuretools.vscode-docker",
"ms-azuretools.vscode-azurefunctions",
"ms-azuretools.vscode-azurestaticwebapps",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"ms-azuretools.azure-dev",
"GitHub.vscode-pull-request-github",
"ms-azuretools.vscode-bicep",
"angular.ng-template",
"42Crunch.vscode-openapi",
"EditorConfig.EditorConfig",
"GitHub.copilot",
"ms-playwright.playwright"
]
}
},
// At least 8gb of RAM is needed due containers
"hostRequirements": {
"cpus": 4,
"memory": "8gb",
"storage": "32gb"
}
}