3
votes

I've configured multi container using Docker Compose Task in Azure Pipeline. I could not able to get URL for the multi container application.

Do I need to configure the app service along with the docker compose task?

Please guide!!!

UPDATE

In order to get the application's URL from DockerCompose Task, Can make use of Azure CLI commands provided in the following documentation link suggested by Merlin Liang - MSFT

https://docs.microsoft.com/en-us/azure/container-instances/container-instances-multi-container-yaml#view-deployment-state

1

1 Answers

1
votes

Not sure here which URL is you are looking for.

1) If what you means is the browsing URL of your APP, you could find it in Overview tab of app service:

enter image description here

Even though it is a multi-container app, this URL has fixed format, and do not be affected by anything:

http://<your-app-name>.azurewebsites.net

2) If what you want is a integrate URL which used to notify/update the app service once a new version of the image is available.

Just go Container settings => Continuous Deployment => Webhook URL:

enter image description here


Do I need to configure the app service along with the docker compose task?

This depend on your actual demand. It is not necessary in most scenarios.

Docker compose task used to orchestration your container. Based on your last SO ticket, you just run service. In fact, in Azure Web App for Containers task. it integrate this part:

enter image description here

If you think here it can not satisfied your usage, you could make use of Docker compose task.


Updated in 2020/3/2:

If someone just build and push the containerization app into ACR, without any integrate with Azure app service. At this time, the browsing url should be look like localhost:<port>.

To get exact host name and ip address, just run below commands to get:

az container show --resource-group myResourceGroup --name myContainerGroup --output table