[dev] open port 8000 when forwarded

This commit is contained in:
Shish 2024-01-08 14:50:17 +00:00
parent 1df53715bd
commit b1dc9892d5

View file

@ -11,11 +11,16 @@
"workspaceMount": "source=${localWorkspaceFolder},target=/app,type=bind", "workspaceMount": "source=${localWorkspaceFolder},target=/app,type=bind",
"workspaceFolder": "/app", "workspaceFolder": "/app",
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [8000], "forwardPorts": [8000],
"portsAttributes": {
"8000": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"otherPortsAttributes": {
"onAutoForward": "silent"
},
"updateContentCommand": "composer install", "updateContentCommand": "composer install",
"postCreateCommand": "./.docker/entrypoint.sh unitd --no-daemon --control unix:/var/run/control.unit.sock", "postCreateCommand": "./.docker/entrypoint.sh unitd --no-daemon --control unix:/var/run/control.unit.sock",