'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?



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Joel Harkes