Skip to content

Commit 69474de

Browse files
authored
Merge pull request #153532 from msangapu-msft/patch-29
Update faq-app-service-linux.md
2 parents ab13714 + bd9745b commit 69474de

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

articles/app-service/faq-app-service-linux.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,20 @@ We have automatic port detection. You can also specify an app setting called *WE
139139

140140
No, the platform handles HTTPS termination at the shared front ends.
141141

142+
**Do I need to use PORT variable in code for built-in containers?**
143+
144+
No, PORT variable is not necessary due to automatic port detection. If no port is detected, it defaults to 80.
145+
To manually configure a custom port, use the EXPOSE instruction in the Dockerfile and the app setting, WEBSITES_PORT, with a port value to bind on the container.
146+
147+
**Do I need to use WEBSITES_PORT for custom containers?**
148+
149+
Yes, this is required for custom containers. To manually configure a custom port, use the EXPOSE instruction in the Dockerfile and the app setting, WEBSITES_PORT, with a port value to bind on the container.
150+
151+
**Can I use ASPNETCORE_URLS in the Docker image?**
152+
153+
Yes, overwrite the environmental variable before .NET core app starts.
154+
E.g. In the init.sh script: export ASPNETCORE_URLS={Your value}
155+
142156
## Multi-container with Docker Compose
143157

144158
**How do I configure Azure Container Registry (ACR) to use with multi-container?**
@@ -201,3 +215,4 @@ You can submit your idea at the [Web Apps feedback forum](https://aka.ms/webapps
201215
- [What is Azure App Service on Linux?](overview.md#app-service-on-linux)
202216
- [Set up staging environments in Azure App Service](deploy-staging-slots.md)
203217
- [Continuous Deployment with Web App for Containers](./deploy-ci-cd-custom-container.md)
218+
- [Things You Should Know: Web Apps and Linux](https://techcommunity.microsoft.com/t5/apps-on-azure/things-you-should-know-web-apps-and-linux/ba-p/392472)

0 commit comments

Comments
 (0)