Initial Commit
This commit is contained in:
28
.devcontainer/devcontainer.json
Normal file
28
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "Umlaut Press (PHP 7.4 + Nginx)",
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile",
|
||||
"context": ".."
|
||||
},
|
||||
"runArgs": [
|
||||
"-v", "${localWorkspaceFolder}/src:/usr/share/nginx/html"
|
||||
],
|
||||
"forwardPorts": [80],
|
||||
"portsAttributes": {
|
||||
"80": {
|
||||
"label": "Site (HTTP)",
|
||||
"onAutoForward": "notify"
|
||||
}
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"bmewburn.vscode-intelephense-client",
|
||||
"xdebug.php-debug"
|
||||
]
|
||||
}
|
||||
},
|
||||
"postCreateCommand": "echo 'Dev container ready. Site will be at http://localhost when Nginx is running.'",
|
||||
"postStartCommand": "/usr/local/sbin/php-fpm -D && nginx",
|
||||
"remoteUser": "root"
|
||||
}
|
||||
Reference in New Issue
Block a user