# Configurations

## 1. License Key&#x20;

To start the installation first, you should get the License Key. Please find a way to do that in [Quick Start Seciton](/quick-start.md)

## 2. Configure Docker

When you already have your own license key, you are able to donwload and install the Docker Image. To do that please follow the instructions below.&#x20;

### Env variables&#x20;

To make sure that your prst.ai installation will be configured correctly and follows [Security Best Practices](/security.md#best-practices) please provide ALL mandatory variables that presented in the table below. &#x20;

<table><thead><tr><th width="280">Name</th><th width="119">Is Required</th><th width="94">Default</th><th>Description</th></tr></thead><tbody><tr><td>PORT</td><td>No</td><td>80</td><td>The port on which the Prst.ai application will listen</td></tr><tr><td>DB_CONNECTION_STRING</td><td>Yes</td><td></td><td>The connection string for the database</td></tr><tr><td>DB_CONFIG_SYNC</td><td>No</td><td>true</td><td>Synchronize database schema on every application launch</td></tr><tr><td>DB_CONFIG_DEBUG</td><td>No</td><td>false</td><td>Enable or disable database debugging</td></tr><tr><td>ROOT_EMAIL</td><td>Yes</td><td>N/A</td><td>The email address for the root administrator</td></tr><tr><td>ROOT_ONE_TIME_PASSWORD</td><td>Yes</td><td>N/A</td><td>The one-time password for the root administrator</td></tr><tr><td>ORGANIZATION_NAME</td><td>No</td><td>PRST</td><td>The name of the organization</td></tr><tr><td>ENCRYPTION_SECRET</td><td>Yes</td><td>N/A</td><td>The encryption secret for securing sensitive information</td></tr><tr><td>DISABLE_SUPPORT</td><td>No</td><td>false</td><td>Enable or disable support operations</td></tr></tbody></table>

### Run Docker Image

```bash
# Run prst.ai docker image
docker run -d
  -p 8080:80
  -e ROOT_EMAIL=admin@prst.ai
  -e ROOT_ONE_TIME_PASSWORD=YOUR_PASSWORD
  -e ORGANIZATION_NAME=PRST
  -e ENCRYPTION_SECRET=YOUR_SECRET
  -e DISABLE_SUPPORT=false
your_prst_ai_image:tag
```

### Use Docker Compose&#x20;

> 💡 **Note:**   Please refer to your regulation to make sure **the way YOU USE prst.ai is align with it.**

```yaml
version: '3.8'

services:
  prst_ai:
    image: your_prst_ai_image:tag
    ports:
      - "3005:3005"
    environment:
      - ROOT_EMAIL=admin@prst.ai
      - ROOT_ONE_TIME_PASSWORD=YOUR_PASSWORD
      - ORGANIZATION_NAME=PRST
      - ENCRYPTION_SECRET=YOUR_SECRET
    healthcheck:
      test: ["CMD-SHELL", "curl --fail http://localhost:3005/api/v1/health || exit 1"]
      interval: 30s
      timeout: 10s
      retries: 3

```

### First Sign In&#x20;

After build and installation the Prst.ai  system will ask you to change the default password to the new one. Please provide secure and strong password to keep your data safe.&#x20;

<figure><img src="/files/cndxKDjndH8dJx0fnAIx" alt="" width="375"><figcaption></figcaption></figure>

## 3. Then Test prst.ai

Simply navigate to your new endpoint to ensure that prst.ai is successfully launched or use Heath Check API connected to your load balancer or any other health measurement system.&#x20;

<figure><img src="/files/75pf1N4hvu1KJbTYvina" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.prst.ai/for-developers/configurations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
