DEV Community

Cover image for Create Azure Container Instance using Docker Compose
Antoine
Antoine

Posted on

Create Azure Container Instance using Docker Compose

Photo by Mike Castro Demaria on Unsplash

As stated in this tutorial on microsoft docs, you can deploy a group of Azure Container Instance using either

  • yaml
  • Azure Resource Manager
  • Docker compose using Docker CLI

Docker Context

As highlighted in the tutorial, in order to deploy using docker cli, you need to

  • login into Azure using docker CLI
  • create an Azure Container Instance docker context

This page from Docker site, describes the integration.

This page describes the support level for each feature of Docker-Compose.

Important: use

docker compose up
Enter fullscreen mode Exit fullscreen mode

to start Azure Container Instance and not docker-compose up !

Features

Azure Files Shares can be used as Volume.

Health checks are supported too, although i'm not sure if they are supported if a VNet is used.

Port mapping is not supported but we can expose up to 5 ports .

Hope this helps !

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs