Skip to content

Commit

Permalink
Merge pull request #1 from Azure-Samples/main
Browse files Browse the repository at this point in the history
chore: added labels to forwarded ports (Azure-Samples#243)
  • Loading branch information
nitya committed Aug 2, 2023
2 parents d50830a + 7aea890 commit 2e93c4c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,26 @@
}
},

// add labels to ports
"portsAttributes": {
"4280": {
"label": "Portal App",
"onAutoForward":"notify"
},
"3000": {
"label": "Blog",
"onAutoForward":"notify"
},
"1337": {
"label": "Strapi CMS",
"onAutoForward":"notify"
},
"4242": {
"label": "Stripe API",
"onAutoForward":"notify"
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [4280, 4242, 3000, 1337],

Expand Down

0 comments on commit 2e93c4c

Please sign in to comment.