Deploying Docker Compose containers in ACI
We discussed ACI in the Deploying a container to ACI with a CI/CD pipeline section.
Now, we will learn how to execute containers with Docker Compose configuration in ACI to run a set of containers that are on the same application services.
For this lab, we will use the same Docker Compose configuration we learned in the Using Docker for running command-line tools section. The only difference is that the running port on the nginx service is 80
instead of 8080
, which we used locally (because my port 80
is already used by another service).
For deploying containers on ACI, we will perform the following steps:
- Inside our Azure subscription, we will create a new resource group called
rg-acicompose
. - Then, in the console terminal, run the following Docker command to log in to Azure:
docker login azure
The execution of this command opens a window that allows us to authenticate ourselves to our Azure subscription.
-
...