Create devcontainer.json

Signed-off-by: BoomchainLabs <cashapppaymentpay01@gmail.com>
This commit is contained in:
BoomchainLabs 2025-03-17 09:03:57 +01:00 committed by GitHub
parent b7ab74091b
commit d8557e4a03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,50 @@
{
"name": "Boomchain Dev Container",
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "20"
},
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
"ghcr.io/devcontainers/features/postgres:1": {
"version": "15",
"database": "boomdb",
"user": "boomuser",
"password": "boompassword"
},
"ghcr.io/devcontainers/features/mongodb:1": {
"version": "6.0"
}
},
"customizations": {
"vscode": {
"settings": {
"editor.formatOnSave": true,
"eslint.format.enable": true,
"typescript.tsdk": "node_modules/typescript/lib"
},
"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"ms-azuretools.vscode-docker",
"github.vscode-github-actions",
"streetsidesoftware.code-spell-checker",
"ms-python.python",
"prisma.prisma",
"mongodb.mongodb-vscode"
]
}
},
"remoteUser": "vscode",
"mounts": [
{
"source": "/var/run/docker.sock",
"target": "/var/run/docker.sock",
"type": "bind"
}
],
"postCreateCommand": "npm install && npm run build",
"forwardPorts": [3000, 4000, 5432, 27017],
"shutdownAction": "stopContainer"
}