Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy docker compose on Azure Container App

from ACA docs we have to specify target port of the container

az containerapp create \
  --name my-container-app \
  --resource-group $RESOURCE_GROUP \
  --environment $CONTAINERAPPS_ENVIRONMENT \
  --image mcr.microsoft.com/azuredocs/containerapps-helloworld:latest \
  --target-port 80 \
  --ingress 'external' \
  --query configuration.ingress.fqdn

Now my question is how to deploy via docker-compose not just a single image, since there is a single target-port?

like image 329
Yefet Avatar asked Jul 21 '26 08:07

Yefet


2 Answers

To deploy with docker-compose, you can use this command: https://learn.microsoft.com/en-us/cli/azure/containerapp/compose

az containerapp compose create --environment
                               --resource-group
                               [--compose-file-path]
                               [--location]
                               [--registry-password]
                               [--registry-server]
                               [--registry-username]
                               [--tags]
                               [--transport]
                               [--transport-mapping]
like image 140
Shakermaker Avatar answered Jul 23 '26 16:07

Shakermaker


If you want to deploy multiple containers to a single container app, you can define more than one container in the configuration's containers array

Reference: Containers in Azure Container Apps Preview | Microsoft Docs

Alternative

If you want to deploy your application via Docker Compose, you can deploy to Azure Web app

While creating the web app, select publish as Docker Container. Under Docker, select options as Docker Compose and provide the Docker Compose file

enter image description here

like image 28
RamaraoAdapa Avatar answered Jul 23 '26 16:07

RamaraoAdapa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!