devcontainer.json 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. // For more details, see https://aka.ms/devcontainer.json.
  2. {
  3. "name": "Mastodon",
  4. "dockerComposeFile": "docker-compose.yml",
  5. "service": "app",
  6. "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
  7. // Features to add to the dev container. More info: https://containers.dev/features.
  8. "features": {
  9. "ghcr.io/devcontainers/features/sshd:1": {}
  10. },
  11. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  12. // This can be used to network with other containers or the host.
  13. "forwardPorts": [3000, 4000],
  14. // Use 'postCreateCommand' to run commands after the container is created.
  15. "onCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
  16. "postCreateCommand": ".devcontainer/post-create.sh",
  17. "waitFor": "postCreateCommand",
  18. // Configure tool-specific properties.
  19. "customizations": {
  20. // Configure properties specific to VS Code.
  21. "vscode": {
  22. // Set *default* container specific settings.json values on container create.
  23. "settings": {},
  24. // Add the IDs of extensions you want installed when the container is created.
  25. "extensions": ["EditorConfig.EditorConfig", "webben.browserslist"]
  26. }
  27. }
  28. }