-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevcontainer.json
More file actions
50 lines (50 loc) · 1.41 KB
/
Copy pathdevcontainer.json
File metadata and controls
50 lines (50 loc) · 1.41 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
{
"name": "go-codebase",
"dockerComposeFile": "../docker-compose.dev.yml",
"service": "api",
"workspaceFolder": "/app",
"shutdownAction": "stopCompose",
"features": {
"ghcr.io/devcontainers/features/docker-from-docker:2": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"golang.go",
"ms-azuretools.vscode-docker",
"EditorConfig.EditorConfig",
"tamasfe.even-better-toml"
],
"settings": {
"go.useLanguageServer": true,
"go.lintTool": "golangci-lint",
"go.lintFlags": ["--fast"],
"editor.formatOnSave": true,
"[go]": {
"editor.defaultFormatter": "golang.go"
}
}
}
},
"forwardPorts": [5432, 8080, 3000, 9090, 16686],
"portsAttributes": {
"5432": {
"label": "PostgreSQL"
},
"8080": {
"label": "API"
},
"3000": {
"label": "Grafana"
},
"9090": {
"label": "Prometheus"
},
"16686": {
"label": "Jaeger"
}
},
"postCreateCommand": "go mod download && make sqlc swagger && make seed-up",
"postStartCommand": "nohup air > /tmp/air.log 2>&1 &"
}