diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..723a714 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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" +}