devcontainer.json 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
  2. // https://github.com/microsoft/vscode-dev-containers/tree/v0.231.6/containers/javascript-node-postgres
  3. // Update the VARIANT arg in docker-compose.yml to pick a Node.js version
  4. {
  5. "name": "Wiki.js Dev",
  6. "dockerComposeFile": "docker-compose.yml",
  7. "service": "app",
  8. "workspaceFolder": "/workspace",
  9. "shutdownAction": "stopCompose",
  10. // Set *default* container specific settings.json values on container create.
  11. "settings": {
  12. "terminal.integrated.defaultProfile.linux": "zsh",
  13. "sqltools.connections": [
  14. // Default connection to dev DB container
  15. {
  16. "name": "Local Dev",
  17. "server": "db",
  18. "port": 5432,
  19. "database": "postgres",
  20. "username": "postgres",
  21. "password": "postgres",
  22. "driver": "PostgreSQL",
  23. "askForPassword": false,
  24. "connectionTimeout": 60
  25. }
  26. ]
  27. },
  28. // Add the IDs of extensions you want installed when the container is created.
  29. "extensions": [
  30. "arcanis.vscode-zipfs",
  31. "dbaeumer.vscode-eslint",
  32. "eamodio.gitlens",
  33. "johnsoncodehk.volar",
  34. "oderwat.indent-rainbow",
  35. "redhat.vscode-yaml",
  36. "visualstudioexptteam.vscodeintellicode",
  37. "editorconfig.editorconfig",
  38. "lokalise.i18n-ally",
  39. "mrmlnc.vscode-duplicate",
  40. "mtxr.sqltools-driver-pg",
  41. "mutantdino.resourcemonitor",
  42. "wayou.vscode-todo-highlight"
  43. ],
  44. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  45. // This can be used to network with other containers or with the host.
  46. "forwardPorts": [3000, 3001, 5432, 8000],
  47. "portsAttributes": {
  48. "3000": {
  49. "label": "Wiki.js",
  50. "onAutoForward": "notify"
  51. },
  52. "5432": {
  53. "label": "PostgreSQL",
  54. "onAutoForward": "silent"
  55. },
  56. "8000": {
  57. "label": "PGAdmin",
  58. "onAutoForward": "silent"
  59. }
  60. },
  61. // Use 'postCreateCommand' to run commands after the container is created.
  62. "postCreateCommand": "/docker-init.sh",
  63. // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
  64. "remoteUser": "node",
  65. "features": {
  66. "common": {
  67. "installZsh": true,
  68. "installOhMyZsh": true,
  69. "upgradePackages": true
  70. },
  71. "github-cli": "latest"
  72. }
  73. }