mirror of
https://github.com/supanadit/todo.git
synced 2025-05-05 12:59:56 +00:00
34 lines
1.1 KiB
JSON
34 lines
1.1 KiB
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": {}
|
|
},
|
|
"mounts": [
|
|
"source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached"
|
|
],
|
|
// 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"
|
|
}
|
|
}
|
|
} |