devcontainer.json 924 B

1234567891011121314151617181920212223242526
  1. {
  2. "name": "Mastodon",
  3. "dockerComposeFile": "docker-compose.yml",
  4. "service": "app",
  5. "workspaceFolder": "/workspaces/mastodon",
  6. // Set *default* container specific settings.json values on container create.
  7. "settings": {},
  8. // Add the IDs of extensions you want installed when the container is created.
  9. "extensions": [
  10. "EditorConfig.EditorConfig",
  11. "dbaeumer.vscode-eslint",
  12. "rebornix.Ruby"
  13. ],
  14. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  15. // This can be used to network with other containers or the host.
  16. "forwardPorts": [3000, 4000],
  17. // Use 'postCreateCommand' to run commands after the container is created.
  18. "postCreateCommand": "bundle install --path vendor/bundle && yarn install && ./bin/rails db:setup",
  19. // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
  20. "remoteUser": "vscode"
  21. }