-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
70 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,69 @@ | ||
// 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": {} | ||
}, | ||
"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" | ||
}, | ||
// "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" | ||
], | ||
"settings": { | ||
"editor.tabSize": 2, | ||
"editor.insertSpaces": true, | ||
"terminal.integrated.defaultProfile.linux": "zsh" | ||
} | ||
} | ||
}, | ||
"portsAttributes": { | ||
"3000": { | ||
"label": "App", | ||
"onAutoForward": "openPreview" | ||
}, | ||
"4983": { | ||
"label": "Studio" | ||
}, | ||
"5432": { | ||
"label": "Database" | ||
} | ||
}, | ||
"forwardPorts": [5432,3000,4983] | ||
|
||
// 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" | ||
"updateContentCommand": "bun i", | ||
"postAttachCommand": { | ||
"app": "bun dev", | ||
"studio": "bun db:studio" | ||
}, | ||
// "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" | ||
], | ||
"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" | ||
}, | ||
"4983": { | ||
"label": "Studio" | ||
}, | ||
"5432": { | ||
"label": "Database" | ||
} | ||
}, | ||
"forwardPorts": [5432, 3000, 4983] | ||
|
||
// 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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters