todo/.devcontainer/devcontainer.json

31 lines
1002 B
JSON

// For format details, see https://aka.m s/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/php
{
"name": "PHP",
"image": "mcr.microsoft.com/devcontainers/php:7.4-bullseye",
"features": {
"ghcr.io/devcontainers/features/git:1": {}
},
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
"settings": {},
"extensions": [
"GitHub.copilot"
]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
8080
],
"postCreateCommand": "sudo chmod a+x \"$(pwd)\" && sudo rm -rf /var/www/html && sudo ln -s \"$(pwd)\" /var/www/html",
// Use 'portsAttributes' to set default properties for specific forwarded ports. More info: https://code.visualstudio.com/docs/remote/devcontainerjson-reference.
"portsAttributes": {
"8080": {
"label": "Apache Server",
"onAutoForward": "notify"
}
}
}