2023-03-04 23:35:00 +00:00
|
|
|
// For more details, see https://aka.ms/devcontainer.json.
|
2022-03-13 14:03:36 +00:00
|
|
|
{
|
|
|
|
"name": "Mastodon",
|
|
|
|
"dockerComposeFile": "docker-compose.yml",
|
|
|
|
"service": "app",
|
2023-03-04 23:35:00 +00:00
|
|
|
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
|
2022-03-13 14:03:36 +00:00
|
|
|
|
2023-03-04 23:35:00 +00:00
|
|
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
2023-01-05 12:32:59 +00:00
|
|
|
"features": {
|
2023-03-04 23:35:00 +00:00
|
|
|
"ghcr.io/devcontainers/features/sshd:1": {}
|
2023-01-05 12:32:59 +00:00
|
|
|
},
|
|
|
|
|
2022-03-13 14:03:36 +00:00
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
2022-03-21 03:46:11 +00:00
|
|
|
// This can be used to network with other containers or the host.
|
|
|
|
"forwardPorts": [3000, 4000],
|
2022-03-13 14:03:36 +00:00
|
|
|
|
2022-03-21 03:46:11 +00:00
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
2023-03-29 12:27:19 +01:00
|
|
|
"onCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
|
2022-12-15 16:40:36 +00:00
|
|
|
"postCreateCommand": ".devcontainer/post-create.sh",
|
2023-03-04 23:35:00 +00:00
|
|
|
"waitFor": "postCreateCommand",
|
2022-03-13 14:03:36 +00:00
|
|
|
|
2023-03-04 23:35:00 +00:00
|
|
|
// Configure tool-specific properties.
|
|
|
|
"customizations": {
|
|
|
|
// Configure properties specific to VS Code.
|
|
|
|
"vscode": {
|
|
|
|
// Set *default* container specific settings.json values on container create.
|
|
|
|
"settings": {},
|
|
|
|
// Add the IDs of extensions you want installed when the container is created.
|
|
|
|
"extensions": ["EditorConfig.EditorConfig", "webben.browserslist"]
|
|
|
|
}
|
|
|
|
}
|
2022-03-13 14:03:36 +00:00
|
|
|
}
|