devcontainer.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "name": "Mastodon on GitHub Codespaces",
  3. "dockerComposeFile": "../docker-compose.yml",
  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. "otherPortsAttributes": {
  22. "onAutoForward": "silent",
  23. },
  24. "remoteEnv": {
  25. "LOCAL_DOMAIN": "${localEnv:CODESPACE_NAME}-3000.app.github.dev",
  26. "LOCAL_HTTPS": "true",
  27. "STREAMING_API_BASE_URL": "https://${localEnv:CODESPACE_NAME}-4000.app.github.dev",
  28. "DISABLE_FORGERY_REQUEST_PROTECTION": "true",
  29. "ES_ENABLED": "",
  30. "LIBRE_TRANSLATE_ENDPOINT": "",
  31. },
  32. "onCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
  33. "postCreateCommand": ".devcontainer/post-create.sh",
  34. "waitFor": "postCreateCommand",
  35. "customizations": {
  36. "vscode": {
  37. "settings": {},
  38. "extensions": ["EditorConfig.EditorConfig", "webben.browserslist"],
  39. },
  40. },
  41. }