You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/containers/docker-compose-recipe.md
+16-20Lines changed: 16 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,21 +7,20 @@ author: aahill
7
7
manager: nitinme
8
8
ms.service: azure-ai-services
9
9
ms.topic: how-to
10
-
ms.date: 11/06/2024
10
+
ms.date: 02/12/2025
11
11
ms.author: aahi
12
12
13
13
# SME: Brendan Walsh
14
14
#Customer intent: As a potential customer, I want to know how to configure containers so I can reuse them.
15
15
---
16
16
17
-
# Use Docker Compose to deploy multiple containers
17
+
# Use Docker Compose to deploy multiple Azure AI containers
18
18
19
-
This article shows you how to deploy multiple Azure AI containers. Specifically, you'll learn how to use Docker Compose to orchestrate multiple Docker container images.
19
+
This article shows you how to deploy multiple Azure AI containers. Specifically, you'll learn how to use Docker Compose to orchestrate multiple Docker container images on a single host computer. The example in this article is deploying a [Document Intelligence](../document-intelligence/overview.md) container and a [AI Vision read](../computer-vision/how-to/call-read-api.md) container together.
20
20
21
+
> [!NOTE]
21
22
> [Docker Compose](https://docs.docker.com/compose/) is a tool for defining and running multi-container Docker applications. In Compose, you use a YAML file to configure your application's services. Then, you create and start all the services from your configuration by running a single command.
22
23
23
-
It can be useful to orchestrate multiple container images on a single host computer. In this article, we'll pull together the Read and Document Intelligence containers.
24
-
25
24
## Prerequisites
26
25
27
26
This procedure requires several tools that must be installed and run locally:
@@ -36,13 +35,16 @@ This procedure requires several tools that must be installed and run locally:
36
35
37
36
## Docker Compose file
38
37
39
-
The YAML file defines all the services to be deployed. These services rely on either a `DockerFile` or an existing container image. In this case, we'll use two preview images. Copy and paste the following YAML file, and save it as *docker-compose.yaml*. Provide the appropriate **apikey**, **billing**, and **EndpointUri** values in the file.
38
+
The YAML file defines all the Azure AI services containers to be deployed. These services rely on either a `DockerFile` or an existing container image. In this case, we'll use two images. Copy and paste the following YAML file, and save it as *docker-compose.yaml*. Provide the appropriate **apikey**, **billing**, and **EndpointUri** values in the file.
39
+
40
+
> [!IMPORTANT]
41
+
> Be sure to create the directories on the host machine that are specified under the `volumes` node, or provide ones that exist on your machine. These directories must exist before you try to mount an image by using volume bindings.
> Create the directories on the host machine that are specified under the **volumes** node. This approach is required because the directories must exist before you try to mount an image by using volume bindings.
74
-
75
74
## Start the configured Docker Compose services
76
75
77
76
A Docker Compose file enables the management of all the stages in a defined service's life cycle: starting, stopping, and rebuilding services; viewing the service status; and log streaming. Open a command-line interface from the project directory (where the docker-compose.yaml file is located).
78
77
79
-
> [!NOTE]
80
-
> To avoid errors, make sure that the host machine correctly shares drives with Docker Engine. For example, if *E:\publicpreview* is used as a directory in the *docker-compose.yaml* file, share drive **E** with Docker.
81
-
82
78
From the command-line interface, execute the following command to start (or restart) all the services defined in the *docker-compose.yaml* file:
Open a browser on the host machine and go to **localhost** by using the specified port from the *docker-compose.yaml* file, such as http://localhost:5021/swagger/index.html. For example, you could use the **Try It** feature in the API to test the Document Intelligence endpoint. Both containers swagger pages should be available and testable.
161
+
Open a browser on the host machine and go to **localhost** by using the specified port from the *docker-compose.yaml* file, such as `http://localhost:5021`. Both containers' landing pages should be available.
0 commit comments