1
0

devcontainer.json 915 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "name": "Mastodon on local machine",
  3. "dockerComposeFile": "compose.yaml",
  4. "service": "app",
  5. "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
  6. "features": {
  7. "ghcr.io/devcontainers/features/sshd:1": {}
  8. },
  9. "forwardPorts": [3000, 4000],
  10. "portsAttributes": {
  11. "3000": {
  12. "label": "web",
  13. "onAutoForward": "notify",
  14. "requireLocalPort": true
  15. },
  16. "4000": {
  17. "label": "stream",
  18. "onAutoForward": "silent",
  19. "requireLocalPort": true
  20. }
  21. },
  22. "remoteUser": "root",
  23. "otherPortsAttributes": {
  24. "onAutoForward": "silent"
  25. },
  26. "onCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
  27. "postCreateCommand": "bin/setup",
  28. "waitFor": "postCreateCommand",
  29. "customizations": {
  30. "vscode": {
  31. "settings": {},
  32. "extensions": ["EditorConfig.EditorConfig", "webben.browserslist"]
  33. }
  34. }
  35. }