devcontainer.json 967 B

1234567891011121314151617181920212223242526
  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/go-postgres
  3. {
  4. "name": "Go & PostgreSQL",
  5. "dockerComposeFile": "docker-compose.yml",
  6. "service": "app",
  7. "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
  8. // Features to add to the dev container. More info: https://containers.dev/features.
  9. // "features": {},
  10. // Configure tool-specific properties.
  11. // "customizations": {},
  12. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  13. // "forwardPorts": [5432],
  14. // Use 'postCreateCommand' to run commands after the container is created.
  15. // "postCreateCommand": "go version",
  16. // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
  17. // "remoteUser": "root"
  18. "customizations": {
  19. "vscode": {
  20. "extensions": [
  21. "xiaoxin-technology.goctl",
  22. "golang.go"
  23. ]
  24. }
  25. }
  26. }