How to run Docker Compose on Azure.

Chris Taylor 20 Reputation points
2025-01-31T08:03:31.97+00:00

I have a local Linux Docker Compose project. I use docker-compose.yml and docker-compose.override.yml files to start 8 containers, all instances of different Docker images. Containers need to communicate with each other and be accessible on ports 80 / 443.

How can I set-up this Docker Compose project on Azure? I would expect Azure to make this effectively 'Serverless' to me.

Thank you.

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
483 questions
{count} votes

Accepted answer
  1. Srinud 3,845 Reputation points Microsoft Vendor
    2025-02-07T18:16:39.9133333+00:00

    Hi @Chris Taylor,
    Azure Container Instances (ACI) with Container Groups is a lightweight, serverless container deployment option that allows multiple containers to run together with shared networking and storage. It is best suited for simple workloads but does not provide full orchestration.

    On the other hand, Azure Kubernetes Service (AKS) is a fully managed Kubernetes service that offers auto-scaling, self-healing, advanced networking, and security features. It is ideal for large-scale, production-ready applications that require container orchestration.

    If your application requires orchestration, scaling, and high availability, AKS is the better choice. However, if you need a quick, lightweight deployment for short-lived or simple workloads, ACI with Container Groups is a suitable option.

    For more details, refer to the following documentation:
    What is Azure Kubernetes Service (AKS)
    Azure Container Instances - Container Groups

    If the information is helpful, please consider by clicking the "Accept answer and Upvote" on the post

    Thank you.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.