Skip to content

Commit 3e6398c

Browse files
committed
jp update install-run
1 parent 8bc8d1a commit 3e6398c

File tree

1 file changed

+29
-22
lines changed

1 file changed

+29
-22
lines changed

articles/ai-services/document-intelligence/containers/install-run.md

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: Install and run Docker containers for Document Intelligence
2+
title: Install and run Docker containers for Document Intelligence
33
titleSuffix: Azure AI services
44
description: Use the Docker containers for Document Intelligence on-premises to identify and extract key-value pairs, selection marks, tables, and structure from forms and documents.
55
author: laujan
66
manager: nitinme
77
ms.service: azure-ai-document-intelligence
88
ms.topic: how-to
9-
ms.date: 11/19/2024
9+
ms.date: 01/22/2025
1010
ms.author: lajanuar
1111
---
1212

@@ -386,23 +386,25 @@ In addition to the [prerequisites](#prerequisites), you need to do the following
386386

387387
1. Declare the following environment variables:
388388

389-
```text
389+
```bash
390+
391+
390392
SHARED_MOUNT_PATH="./share"
391393
OUTPUT_MOUNT_PATH="./output"
392394
FILE_MOUNT_PATH="./files"
393395
DB_MOUNT_PATH="./db"
394396
FORM_RECOGNIZER_ENDPOINT_URI="YourFormRecognizerEndpoint"
395397
FORM_RECOGNIZER_KEY="YourFormRecognizerKey"
396398
NGINX_CONF_FILE="./nginx.conf"
397-
```
399+
```
398400

399401
#### Create an **nginx** file
400402

401403
1. Name this file **nginx.conf**.
402404

403405
1. Enter the following configuration:
404406

405-
```text
407+
```bash
406408
worker_processes 1;
407409
408410
events { worker_connections 1024; }
@@ -496,7 +498,10 @@ http {
496498
}
497499
498500
```
501+
::: moniker-end
502+
499503
:::moniker range="<=doc-intel-3.0.0"
504+
500505
#### Create a **docker compose** file
501506

502507
1. Name this file **docker-compose.yml**
@@ -511,7 +516,7 @@ services:
511516
container_name: reverseproxy
512517
depends_on:
513518
- layout
514-
- custom-template
519+
- custom-template
515520
volumes:
516521
- ${NGINX_CONF_FILE}:/etc/nginx/nginx.conf
517522
ports:
@@ -583,6 +588,7 @@ services:
583588
::: moniker-end
584589

585590
:::moniker range=">=doc-intel-3.1.0"
591+
586592
#### Create a **docker compose** file
587593

588594
1. Name this file **docker-compose.yml**
@@ -597,7 +603,7 @@ services:
597603
container_name: reverseproxy
598604
depends_on:
599605
- layout
600-
- custom-template
606+
- custom-template
601607
volumes:
602608
- ${NGINX_CONF_FILE}:/etc/nginx/nginx.conf
603609
ports:
@@ -727,20 +733,21 @@ $b64String = [System.Convert]::ToBase64String($bytes, [System.Base64FormattingOp
727733
Use the build model API to post the request.
728734

729735
```http
730-
POST http://localhost:5000/formrecognizer/documentModels:build?api-version=2023-07-31
731-
732-
{
733-
"modelId": "mymodel",
734-
"description": "test model",
735-
"buildMode": "template",
736-
737-
"base64Source": "<Your base64 encoded string>",
738-
"tags": {
739-
"additionalProp1": "string",
740-
"additionalProp2": "string",
741-
"additionalProp3": "string"
742-
}
743-
}
736+
737+
POST http://localhost:5000/formrecognizer/documentModels:build?api-version=2023-07-31
738+
739+
{
740+
"modelId": "mymodel",
741+
"description": "test model",
742+
"buildMode": "template",
743+
744+
"base64Source": "<Your base64 encoded string>",
745+
"tags": {
746+
"additionalProp1": "string",
747+
"additionalProp2": "string",
748+
"additionalProp3": "string"
749+
}
750+
}
744751
```
745752

746753
---
@@ -812,4 +819,4 @@ That's it! In this article, you learned concepts and workflows for downloading,
812819
* [Document Intelligence container configuration settings](configuration.md)
813820

814821
* [Azure container instance recipe](../../../ai-services/containers/azure-container-instance-recipe.md)
815-
::: moniker-end
822+

0 commit comments

Comments
 (0)