devcontainer.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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": [5432, 8000],
  48. "portsAttributes": {
  49. "5432": {
  50. "label": "PostgreSQL",
  51. "onAutoForward": "silent"
  52. },
  53. "8000": {
  54. "label": "PGAdmin",
  55. "onAutoForward": "silent"
  56. }
  57. },
  58. // Use 'postCreateCommand' to run commands after the container is created.
  59. "postCreateCommand": "/docker-init.sh",
  60. // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
  61. "remoteUser": "node",
  62. "features": {
  63. "common": {
  64. "installZsh": true,
  65. "installOhMyZsh": true,
  66. "upgradePackages": true
  67. },
  68. "github-cli": "latest"
  69. }
  70. }