devcontainer.json 2.2 KB

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