Skip to content

Commit f767d59

Browse files
committed
updates
1 parent 0a88d54 commit f767d59

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/ai-services/containers/docker-compose-recipe.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ This procedure requires several tools that must be installed and run locally:
3737

3838
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.
3939

40+
> [!NOTE]
41+
> To avoid errors, make sure that the host machine correctly shares drives with Docker Engine. For example, if *E:\mydirectory* is used as a directory in the *docker-compose.yaml* file, share drive **E** with Docker.
42+
4043
```yaml
4144
version: '3.7'
4245
services:
@@ -50,10 +53,10 @@ services:
5053
FormRecognizer__ComputerVisionEndpointUri: # < Your Document Intelligence URI >
5154
volumes:
5255
- type: bind
53-
source: C:\mydirectory\output
56+
source: E:\mydirectory\output
5457
target: /output
5558
- type: bind
56-
source: C:\mydirectory\input
59+
source: E:\mydirectory\input
5760
target: /input
5861
ports:
5962
- "5010:5000"
@@ -75,9 +78,6 @@ services:
7578
7679
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).
7780
78-
> [!NOTE]
79-
> 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.
80-
8181
From the command-line interface, execute the following command to start (or restart) all the services defined in the *docker-compose.yaml* file:
8282
8383
```console
@@ -161,7 +161,7 @@ IMAGE ID REPOSITORY
161161

162162
### Test containers
163163

164-
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.
164+
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.
165165

166166
:::image type="content" source="../media/container-webpage.png" alt-text="A screenshot of the container landing page.":::
167167

0 commit comments

Comments
 (0)