devcontainer.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. },
  15. "extensions": [
  16. "arcanis.vscode-zipfs",
  17. "dbaeumer.vscode-eslint",
  18. "eamodio.gitlens",
  19. "Vue.volar",
  20. "oderwat.indent-rainbow",
  21. "redhat.vscode-yaml",
  22. "VisualStudioExptTeam.vscodeintellicode",
  23. "editorconfig.editorconfig",
  24. "lokalise.i18n-ally",
  25. "mrmlnc.vscode-duplicate",
  26. "mutantdino.resourcemonitor",
  27. "wayou.vscode-todo-highlight",
  28. "GraphQL.vscode-graphql"
  29. ]
  30. }
  31. },
  32. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  33. // This can be used to network with other containers or with the host.
  34. "forwardPorts": [5432, 8000],
  35. "portsAttributes": {
  36. "5432": {
  37. "label": "PostgreSQL",
  38. "onAutoForward": "silent"
  39. },
  40. "8000": {
  41. "label": "PGAdmin",
  42. "onAutoForward": "silent"
  43. }
  44. },
  45. // Use 'postCreateCommand' to run commands after the container is created.
  46. "postCreateCommand": "/docker-init.sh",
  47. // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
  48. "remoteUser": "node",
  49. "features": {
  50. "ghcr.io/devcontainers/features/common-utils:2": {
  51. "installZsh": "true",
  52. "installOhMyZsh": "true",
  53. "username": "node",
  54. "upgradePackages": "true"
  55. },
  56. "ghcr.io/devcontainers/features/node:1": {
  57. "version": "none"
  58. },
  59. "ghcr.io/devcontainers/features/git:1": {},
  60. "ghcr.io/joedmck/devcontainer-features/cloudflared:1": {}
  61. }
  62. }