devcontainer.json 1.0 KB

1234567891011121314151617181920212223242526
  1. // For format details, see https://aka.ms/devcontainer.json. For config options, see the
  2. // README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node-mongo
  3. {
  4. "name": "Node.js & Mongo DB",
  5. "dockerComposeFile": "docker-compose.yml",
  6. "service": "app",
  7. "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
  8. // Features to add to the dev container. More info: https://containers.dev/features.
  9. // "features": {},
  10. // Configure tool-specific properties.
  11. "customizations": {
  12. // Configure properties specific to VS Code.
  13. "vscode": {
  14. // Add the IDs of extensions you want installed when the container is created.
  15. "extensions": [
  16. "mongodb.mongodb-vscode"
  17. ]
  18. }
  19. }
  20. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  21. // "forwardPorts": [3000, 27017],
  22. // Use 'postCreateCommand' to run commands after the container is created.
  23. // "postCreateCommand": "yarn install",
  24. // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
  25. // "remoteUser": "root"
  26. }