最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Azure App Services, Docker Compose (Preview), missing - Stack Overflow

programmeradmin1浏览0评论

I had a Docker Compose multi-container app running in Azure App Services in Dec 2024.

Now, Jan 2025, I deleted the app service with the plan to recreate it much as before.

However, I now find that the option to choose 'Docker Compose (Preview)' within Azure app services is missing.

Where did it go? Has the preview ended? Has it moved elsewhere, or has it been removed completely?

How does one now run a multi-container Docker Compose?

I had a Docker Compose multi-container app running in Azure App Services in Dec 2024.

Now, Jan 2025, I deleted the app service with the plan to recreate it much as before.

However, I now find that the option to choose 'Docker Compose (Preview)' within Azure app services is missing.

Where did it go? Has the preview ended? Has it moved elsewhere, or has it been removed completely?

How does one now run a multi-container Docker Compose?

Share Improve this question asked Jan 29 at 9:52 Angus MillarAngus Millar 335 bronze badges 1
  • 1 The Docker Compose (Preview)' option has been removed from Azure App Services—use Azure Container Apps, Azure Service Fabric, or AKS for multi-container deployments. – Sirra Sneha Commented Jan 29 at 10:35
Add a comment  | 

1 Answer 1

Reset to default 0

Where did it go? Has the preview ended? Has it moved elsewhere, or has it been removed completely?

It is possible that the feature has either been removed temporarily or deprecated.

As you're looking to deploy a multi-container application, here are some options that you can consider:

  • You can use Azure Container Apps, it supports multi-container applications and allows deployment using Docker Compose files, which can be converted for compatibility. Please refer this doc to know about Azure Container Apps.

    Here's the sample YAML file for deploying a multi-container application to Azure Container Apps

multi-container.yaml:

properties:
  managedEnvironmentId: "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.App/managedEnvironments/{environment-name}"
  configuration:
    ingress:
      external: true
      targetPort: 80
    dapr:  # Optional: If using Dapr for service-to-service communication
      enabled: true
      appId: my-multi-container-app
  template:
    containers:
      - name: web-app
        image: myregistry.azurecr.io/web-app:latest
        resources:
          cpu: 0.5
          memory: 1Gi
        env:
          - name: APP_ENV
            value: production
      - name: api-service
        image: myregistry.azurecr.io/api-service:latest
        resources:
          cpu: 0.5
          memory: 1Gi
        env:
          - name: API_KEY
            value: my-secret-api-key
      - name: redis
        image: redis:latest
        resources:
          cpu: 0.25
          memory: 512Mi

Now you can deploy your application via Azure CLI by running the below command

az containerapp create --name my-multi-container-app --resource-group my-resource-group --yaml multi-container.yaml
  • Also Azure Kubernetes Service (AKS) supports multi-container deployments using Kubernetes YAML files.
  • Azure App Service Sidecar Containers(preview) allow running a main container alongside additional sidecar containers for multi-container functionality. Refer this doc for better understanding about App Service sidecar containers.

So, these are the alternatives for deploying multi-container applications in Azure.

For simpler setups, use Azure Container Apps, for complex orchestration, use AKS.

发布评论

评论列表(0)

  1. 暂无评论