devcontainer.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. },
  15. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  16. // "forwardPorts": [],
  17. // Use 'postCreateCommand' to run commands after the container is created.
  18. // "postCreateCommand": "",
  19. // Configure tool-specific properties.
  20. "customizations": {
  21. "vscode": {
  22. "extensions": [
  23. "antfu.iconify",
  24. "antfu.unocss",
  25. "github.copilot",
  26. "golang.go",
  27. "vue.volar"
  28. ]
  29. }
  30. },
  31. // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
  32. "remoteUser": "root",
  33. "overrideCommand": false,
  34. "postStartCommand": "./.devcontainer/start.sh",
  35. "mounts": [
  36. "source=${localEnv:HOME}/.ssh,target=/root/.ssh,type=bind,consistency=cached"
  37. ]
  38. }