friendica-github/.devcontainer/devcontainer.json
ne20002 07d6500700
Updated dev container configuration
- moved vscode launch.json to .devcontainer
 - added forwardPorts to devcontainer.json
 - create log file in postCreate.sh
2024-08-31 14:20:26 +00:00

45 lines
1.3 KiB
JSON

// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/php-mariadb
{
"name": "Friendica",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"remoteEnv": {
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"developmentUser": "vscode"
},
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "bash -c '.devcontainer/postCreate.sh && .devcontainer/postCreateApacheSetup.sh && .devcontainer/postCreateFriendicaSetup.sh'",
"postStartCommand": "service apache2 start",
"forwardPorts": [
80,
443,
3306,
8080
],
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"bmewburn.vscode-intelephense-client",
"ms-azuretools.vscode-docker",
"xdebug.php-debug",
"donjayamanne.githistory"
],
"settings": {
"php.suggest.basic": false
}
}
},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
"remoteUser": "vscode"
}