1
0

devcontainer.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "name": "Mastodon on GitHub Codespaces",
  3. "dockerComposeFile": "../compose.yaml",
  4. "service": "app",
  5. "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
  6. "features": {
  7. "ghcr.io/devcontainers/features/sshd:1": {}
  8. },
  9. "runServices": ["app", "db", "redis"],
  10. "forwardPorts": [3000, 4000],
  11. "portsAttributes": {
  12. "3000": {
  13. "label": "web",
  14. "onAutoForward": "notify"
  15. },
  16. "4000": {
  17. "label": "stream",
  18. "onAutoForward": "silent"
  19. }
  20. },
  21. "remoteUser": "root",
  22. "otherPortsAttributes": {
  23. "onAutoForward": "silent"
  24. },
  25. "remoteEnv": {
  26. "LOCAL_DOMAIN": "${localEnv:CODESPACE_NAME}-3000.app.github.dev",
  27. "LOCAL_HTTPS": "true",
  28. "STREAMING_API_BASE_URL": "https://${localEnv:CODESPACE_NAME}-4000.app.github.dev",
  29. "DISABLE_FORGERY_REQUEST_PROTECTION": "true",
  30. "ES_ENABLED": "",
  31. "LIBRE_TRANSLATE_ENDPOINT": ""
  32. },
  33. "onCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
  34. "postCreateCommand": "bin/setup",
  35. "waitFor": "postCreateCommand",
  36. "customizations": {
  37. "vscode": {
  38. "settings": {},
  39. "extensions": ["EditorConfig.EditorConfig", "webben.browserslist"]
  40. }
  41. }
  42. }