devcontainer.json 951 B

123456789101112131415161718192021222324252627
  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. "webben.browserslist"
  14. ],
  15. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  16. // This can be used to network with other containers or the host.
  17. "forwardPorts": [3000, 4000],
  18. // Use 'postCreateCommand' to run commands after the container is created.
  19. "postCreateCommand": "bundle install --path vendor/bundle && yarn install && ./bin/rails db:setup",
  20. // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
  21. "remoteUser": "vscode"
  22. }