1

I have a project with Asp.Net ABP angular and asp.net core.

With Docker, it will build with docker like below:

enter image description here

I am wondering how to deploy them to Azure Docker Compose.

1 Answer 1

2

Take a look at this quick start guide. You can create a web app by using following CLI command

az webapp create --resource-group myResourceGroup --plan myAppServicePlan --name <app_name> --multicontainer-config-type compose --multicontainer-config-file docker-compose.yml

If you use the portal, create a Web App for Containers app service specifying your container registry and upload your docker-compose.yml file.

create-azure-web-app-for-containers

Sign up to request clarification or add additional context in comments.

2 Comments

For docker-compose.yml, it will need docker image. For local computer, I could build it with docker, and then use with docker-compose, how could Azure access my local image when use your command?
@Edward you have to push your images to a registry. You can either push your docker images to your own repo in docker hub or create a container registry in Azure and push your images there. You can then select the source registry and enter the image tag as shown the screenshot. Configuration File is your docker-compose.yml.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.