Add port attributes

This commit is contained in:
Stephan Auerhahn 2023-05-20 13:09:55 +00:00
parent e7741af34a
commit cf4553a71e
2 changed files with 17 additions and 1 deletions

View File

@ -17,5 +17,11 @@
"ghcr.io/devcontainers/features/github-cli:1": {
}
},
"portsAttributes": {
"3000": {
"label": "Application",
"onAutoForward": "openBrowserOnce"
}
}
}

View File

@ -37,5 +37,15 @@
"COMMANDLINE_ARGS": "--nowebui --cors-allow-origins=http://localhost:3000",
"venv_dir": "/home/node/.webui-venv"
},
"runArgs": ["--gpus", "all"]
"runArgs": ["--gpus", "all"],
"portsAttributes": {
"3000": {
"label": "Application",
"onAutoForward": "openBrowserOnce"
},
"7861": {
"label": "Backend",
"onAutoForward": "ignore"
}
}
}