devcontainer.json 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. "Vue.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. "GraphQL.vscode-graphql"
  44. ],
  45. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  46. // This can be used to network with other containers or with the host.
  47. "forwardPorts": [3000, 3001, 5432, 8000],
  48. "portsAttributes": {
  49. "3000": {
  50. "label": "Wiki.js",
  51. "onAutoForward": "notify"
  52. },
  53. "5432": {
  54. "label": "PostgreSQL",
  55. "onAutoForward": "silent"
  56. },
  57. "8000": {
  58. "label": "PGAdmin",
  59. "onAutoForward": "silent"
  60. }
  61. },
  62. // Use 'postCreateCommand' to run commands after the container is created.
  63. "postCreateCommand": "/docker-init.sh",
  64. // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
  65. "remoteUser": "node",
  66. "features": {
  67. "common": {
  68. "installZsh": true,
  69. "installOhMyZsh": true,
  70. "upgradePackages": true
  71. },
  72. "github-cli": "latest"
  73. }
  74. }