-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.devcontainer.json
81 lines (80 loc) · 2.54 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
// 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-postgres
{
"name": "Bun & Postgres",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers-contrib/features/zsh-plugins:0": {
"plugins": "zsh-completions zsh-autosuggestions zsh-syntax-highlighting",
"omzPlugins": "https://github.com/zsh-users/zsh-completions.git https://github.com/zsh-users/zsh-autosuggestions.git https://github.com/zsh-users/zsh-syntax-highlighting.git"
},
"ghcr.io/shyim/devcontainers-features/bun:0": {},
"ghcr.io/itsmechlark/features/postgresql:1.3.3": {}
},
"waitFor": "onCreateCommand",
"updateContentCommand": "bun i",
"postAttachCommand": {
"app": "bun dev",
"studio": "bun db:studio",
"docs": "bun docs"
},
// "postCreateCommand": "bun db:migrate && bun db:seed",
"postCreateCommand": "./scripts/create-db.sh",
"customizations": {
"vscode": {
"extensions": [
"biomejs.biome",
"ms-azuretools.vscode-docker",
"w0o0o.bun-scripts",
"oven.bun-vscode",
"antfu.browse-lite",
"mtxr.sqltools",
"mtxr.sqltools-driver-pg",
"bierner.markdown-preview-github-styles",
"Pandy.bun",
"github.vscode-github-actions",
"yzhang.markdown-all-in-one",
"Vue.volar",
"vivaxy.vscode-conventional-commits"
],
"settings": {
"editor.tabSize": 2,
"editor.insertSpaces": true,
"terminal.integrated.defaultProfile.linux": "zsh",
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
}
}
}
},
"portsAttributes": {
"3000": {
"label": "App",
"onAutoForward": "openPreview"
},
"4173": {
"label": "Docs (Preview)"
},
"4983": {
"label": "Studio"
},
"5173": {
"label": "Docs"
},
"5432": {
"label": "Database"
}
},
"forwardPorts": [5432, 3000, 4983, 4173]
// Configure tool-specific properties.
// "customizations": {},
// Needed for bun install (for access to save .lockb). More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}