-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdevcontainer.json
More file actions
51 lines (44 loc) · 1.33 KB
/
devcontainer.json
File metadata and controls
51 lines (44 loc) · 1.33 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
44
45
46
47
48
49
50
51
{
"name": "Tracker API",
"dockerComposeFile": "docker-compose.yml",
// The service in docker-compose that VS Code / Codespaces attaches to
"service": "api",
// Set the workspace to the api subdirectory of the monorepo.
// docker-compose.yml mounts the repo root at /workspaces, so api/ is at /workspaces/api.
"workspaceFolder": "/workspaces/api",
"forwardPorts": [4000, 8529, 4222],
"portsAttributes": {
"4000": {
"label": "GraphQL API",
"onAutoForward": "notify"
},
"8529": {
"label": "ArangoDB Web UI"
},
"4222": {
"label": "NATS"
}
},
// Install dependencies after the container is created.
// Copy .env.example to .env so the API can start without manual setup.
"postCreateCommand": "npm install && [ ! -f .env ] && cp .env.example .env || true",
// Start the API in watch mode automatically
"postStartCommand": "npm run dev:watch",
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"apollographql.vscode-apollo",
"lokalise.i18n-ally",
"Orta.vscode-jest"
],
"settings": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.workingDirectories": ["."]
}
}
},
"remoteUser": "node"
}