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. "customizations": {
  11. "vscode": {
  12. "settings": {
  13. "terminal.integrated.defaultProfile.linux": "zsh",
  14. "sqltools.connections": [
  15. // Default connection to dev DB container
  16. {
  17. "name": "Local Dev",
  18. "server": "db",
  19. "port": 5432,
  20. "database": "postgres",
  21. "username": "postgres",
  22. "password": "postgres",
  23. "driver": "PostgreSQL",
  24. "askForPassword": false,
  25. "connectionTimeout": 60
  26. }
  27. ]
  28. },
  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. "mutantdino.resourcemonitor",
  41. "wayou.vscode-todo-highlight",
  42. "GraphQL.vscode-graphql"
  43. ]
  44. }
  45. },
  46. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  47. // This can be used to network with other containers or with the host.
  48. "forwardPorts": [5432, 8000],
  49. "portsAttributes": {
  50. "5432": {
  51. "label": "PostgreSQL",
  52. "onAutoForward": "silent"
  53. },
  54. "8000": {
  55. "label": "PGAdmin",
  56. "onAutoForward": "silent"
  57. }
  58. },
  59. // Use 'postCreateCommand' to run commands after the container is created.
  60. "postCreateCommand": "/docker-init.sh",
  61. // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
  62. "remoteUser": "node",
  63. "features": {
  64. "common": {
  65. "installZsh": true,
  66. "installOhMyZsh": true,
  67. "upgradePackages": true
  68. },
  69. "github-cli": "latest"
  70. }
  71. }