Create Azure Container Instance using Docker Compose

Antoine - Aug 22 '21 - - Dev Community

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 !

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player