devcontainer.json 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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.1": {}
  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. ]
  31. }
  32. },
  33. // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
  34. "remoteUser": "root",
  35. "overrideCommand": false,
  36. "postStartCommand": "./.devcontainer/start.sh",
  37. "mounts": [
  38. "source=${localEnv:HOME}/.ssh,target=/root/.ssh,type=bind,consistency=cached"
  39. ]
  40. }