devcontainer.json 915 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. "name": "Mastodon on local machine",
  3. "dockerComposeFile": "docker-compose.yml",
  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. "otherPortsAttributes": {
  23. "onAutoForward": "silent"
  24. },
  25. "onCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
  26. "postCreateCommand": ".devcontainer/post-create.sh",
  27. "waitFor": "postCreateCommand",
  28. "customizations": {
  29. "vscode": {
  30. "settings": {},
  31. "extensions": ["EditorConfig.EditorConfig", "webben.browserslist"]
  32. }
  33. }
  34. }