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
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,9 @@ This procedure requires several tools that must be installed and run locally:
37
37
38
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
39
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
+
40
43
```yaml
41
44
version: '3.7'
42
45
services:
@@ -50,10 +53,10 @@ services:
50
53
FormRecognizer__ComputerVisionEndpointUri: # < Your Document Intelligence URI >
51
54
volumes:
52
55
- type: bind
53
-
source: C:\mydirectory\output
56
+
source: E:\mydirectory\output
54
57
target: /output
55
58
- type: bind
56
-
source: C:\mydirectory\input
59
+
source: E:\mydirectory\input
57
60
target: /input
58
61
ports:
59
62
- "5010:5000"
@@ -75,9 +78,6 @@ services:
75
78
76
79
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).
77
80
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
-
81
81
From the command-line interface, execute the following command to start (or restart) all the services defined in the *docker-compose.yaml* file:
82
82
83
83
```console
@@ -161,7 +161,7 @@ IMAGE ID REPOSITORY
161
161
162
162
### Test containers
163
163
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.
165
165
166
166
:::image type="content" source="../media/container-webpage.png" alt-text="A screenshot of the container landing page.":::
0 commit comments