mastodon/.devcontainer/devcontainer.json
Yuva 6bc3da89bd
Update devcontainer.json
Here's an updated version of the Docker-related development configuration with refinements for clarity and best practices
2024-12-25 10:54:29 +05:30

57 lines
1.2 KiB
JSON

{
"name": "Mastodon on local machine",
"dockerComposeFile": "compose.yaml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"features": {
"ghcr.io/devcontainers/features/sshd:1": {}
},
"forwardPorts": [3000, 3035, 4000],
"portsAttributes": {
"3000": {
"label": "Web Application",
"onAutoForward": "notify",
"requireLocalPort": true
},
"3035": {
"label": "Webpack Dev Server",
"onAutoForward": "notify",
"requireLocalPort": true
},
"4000": {
"label": "Streaming API",
"onAutoForward": "silent",
"requireLocalPort": true
}
},
"remoteUser": "root",
"otherPortsAttributes": {
"onAutoForward": "silent"
},
"onCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
"postCreateCommand": "bin/setup && yarn install",
"waitFor": "postCreateCommand",
"customizations": {
"vscode": {
"settings": {
"editor.formatOnSave": true,
"files.eol": "\n"
},
"extensions": [
"EditorConfig.EditorConfig",
"webben.browserslist",
"rebornix.ruby",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
}
}
}