devcontainer.json 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // For format details, see https://aka.ms/devcontainer.json. For config options, see the
  2. // README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
  3. {
  4. "name": "Ubuntu",
  5. "dockerComposeFile": "docker-compose.yml",
  6. "service": "nginx-ui",
  7. "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
  8. "shutdownAction": "stopCompose",
  9. // Features to add to the dev container. More info: https://containers.dev/features.
  10. "features": {
  11. "ghcr.io/devcontainers/features/common-utils:2": {
  12. "installOhMyZsh": true
  13. },
  14. "ghcr.io/devcontainers/features/node:1.6.2": {}
  15. },
  16. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  17. // "forwardPorts": [],
  18. // Use 'postCreateCommand' to run commands after the container is created.
  19. // "postCreateCommand": "",
  20. // Configure tool-specific properties.
  21. "customizations": {
  22. "vscode": {
  23. "extensions": [
  24. "antfu.iconify",
  25. "antfu.unocss",
  26. "github.copilot",
  27. "golang.go",
  28. "vue.volar",
  29. "ms-azuretools.vscode-docker",
  30. "akino.i18n-gettext"
  31. ]
  32. }
  33. },
  34. // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
  35. "remoteUser": "root",
  36. "overrideCommand": false,
  37. "postStartCommand": "./.devcontainer/start.sh",
  38. "mounts": [
  39. "source=${localEnv:HOME}/.ssh,target=/root/.ssh,type=bind,consistency=cached"
  40. ]
  41. }