> For the complete documentation index, see [llms.txt](https://docs.enginsight.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enginsight.com/docs/manual/english/installation-and-configuration/installation-and-configuration/enginsight-platform/manual-installation/application-server-platform.md). Agents can also search and read this documentation through its [MCP server](https://docs.enginsight.com/docs/~gitbook/mcp).

# Application Server (Platform)

Follow the steps below to install and set up the Enginsight platform.

***

## Installing Third-Party Applications

{% stepper %}
{% step %}

### Complete the prerequisite steps

Make sure that you have completed the [prerequisite steps](https://docs.enginsight.com/docs/manual/english/installation-and-configuration/installation-and-configuration/enginsight-platform/manual-installation.md) correctly before starting the installation.
{% endstep %}

{% step %}

### Install Docker

Install Docker Engine on the prepared Application Server according to the vendor's instructions: [Install Docker Engine](https://docs.docker.com/engine/install/).

{% hint style="danger" %}
**Please note:** Do not install Docker via Snap or during the operating system installation. Install Docker exclusively using the package repositories provided in the official installation guide.
{% endhint %}
{% endstep %}

{% step %}

### Install Git

Install Git on the prepared Application Server according to the vendor's instructions: [Getting Started - Installing Git](https://git-scm.com/book/de/v2/Erste-Schritte-Git-installieren).
{% endstep %}
{% endstepper %}

***

## Installing the Enginsight Platform

Follow these steps to install the Enginsight platform on the Enginsight Application Server:

{% stepper %}
{% step %}

### Check Docker versions

Use the following commands to ensure that the latest versions of Docker and Docker Compose are installed:

```
sudo docker version
sudo docker compose version
```

Press **Enter** to confirm your entries.
{% endstep %}

{% step %}

### Log in to Docker

Log in to Docker using the Docker credentials that you [received from us](https://docs.enginsight.com/docs/manual/english/installation-and-configuration/installation-and-configuration/enginsight-platform/manual-installation.md#request-credentials-for-the-enginsight-docker-registry):

```
sudo docker login registry.enginsight.com
```

If an authentication error is displayed, check if a **current GPG2 key** is available.

If necessary, generate one automatically using the following commands:&#x20;

```
sudo apt install gnupg2
sudo gpg2 --gen-key
```

Press **Enter** to confirm your entries.
{% endstep %}

{% step %}

### Create the Enginsight installation directory

Create an installation directory for Enginsight using the following command:

```
sudo mkdir -p /opt/enginsight && cd /opt/enginsight
```

Press **Enter** to confirm your entry.
{% endstep %}

{% step %}

### Clone the Enginsight files

{% hint style="warning" %}
**Please note:** You must have [installed Git](#install-git) before performing this step.
{% endhint %}

Clone the Enginsight repository using the following command:

```
sudo git clone https://github.com/enginsight/enterprise.git
```

Press **Enter** to confirm your entry.
{% endstep %}

{% step %}

### Run the Application Server setup script

Run the Application Server setup script using the following command:

```
cd enterprise && sudo ./setup.sh
```

Press **Enter** to confirm your entry.
{% endstep %}

{% step %}

### Review and confirm URIs and URLs

You will be prompted to review and confirm various URIs (Uniform Resource Identifiers) and URLs.

<div align="left"><figure><img src="https://content.gitbook.com/content/V7OrHgKXA0t1jankQBYf/blobs/9nipywYga5MrPJB8rILP/7.png" alt=""><figcaption></figcaption></figure></div>

The corresponding URIs and URLs are already prefilled and only need to be reviewed and confirmed by pressing **Enter**.

If you would like to adjust any of the values, enter the changes as follows and press **Enter** to confirm each entry:

<table><thead><tr><th width="202.171875">Option</th><th>Beschreibung</th></tr></thead><tbody><tr><td>Enter MongoDB URI</td><td><p>Enter the URI of the MongoDB instance on which the Enginsight database is running in the following format:<br><br><code>mongodb://mongoDefaultUser:&#x3C;MongoDBPassword>@&#x3C;DatabaseServerIPAddress>:27017/enginsight?authSource=enginsight&#x26;replicaSet=rs0</code></p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Remember to replace <code>&#x3C;MongoDBPassword></code> and <code>&#x3C;DatabaseServerIPAddress></code> accordingly.</p><p>The password for MongoDB can also be found in the following directory: <code>/home/ngsapp/mongoDefaultUserPassword</code></p></div><p>If you have <strong>not</strong> enabled Role-Based Access Control (RBAC) and TLS encryption, enter the URI as follows:<br><br><code>mongodb://&#x3C;DatabaseServerIPAddress>:27017/enginsight?authSource=enginsight&#x26;replicaSet=rs0</code></p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Remember to replace <code>&#x3C;DatabaseServerIPAddress></code> accordingly.</p></div></td></tr><tr><td>Enter Redis URI</td><td><p>If you are using a Remote Dictionary Server (Redis), enter its URI in the following format:<br><br><code>redis://redis:&#x3C;RedisPortnummer></code></p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Remember to replace <code>&#x3C;RedisPortNumber></code> accordingly.</p></div></td></tr><tr><td>Enter APP URL</td><td><p>Enter the URL under which the Enginsight user interface can be accessed in the following format:<br><br><code>http://&#x3C;ApplicationServerIPAddress></code> <strong>or</strong> <code>http://&#x3C;DomainApp></code></p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Remember to replace <code>&#x3C;ApplicationServerIPAddress></code> and <code>&#x3C;DomainApp></code> accordingly.</p></div></td></tr><tr><td>Enter API URL</td><td><p>Enter the URL under which the Enginsight API can be reached in the following format:<br><br><code>http://&#x3C;ApplicationServerIPAddress>:8080</code> <strong>or</strong> <code>http://&#x3C;DomainAPI>:8080</code></p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Remember to replace <code>&#x3C;ApplicationServerIPAddress></code> and <code>&#x3C;DomainAPI></code> accordingly.</p></div></td></tr></tbody></table>
{% endstep %}

{% step %}

### Secure access to the Enginsight user interface and API using HTTPS

After the installation and initial setup of the Application Server have been completed, HTTPS access to the Enginsight user interface and API is still disabled.

{% hint style="danger" %}
**Please note:** For security reasons, we strongly recommend that you enable HTTPS access.
{% endhint %}

Use the following guide to enable a secure HTTPS connection: [HTTPS Encryption](https://docs.enginsight.com/docs/manual/english/installation-and-configuration/installation-and-configuration/additional-configurations/https-encryption.md).
{% endstep %}
{% endstepper %}

***

## Initial Login Credentials for the User Interface

Once you have completed the installation and setup of the Application Server, you can log in using temporary credentials to verify that your Enginsight instance is working as expected. Afterwards, change the login credentials.

Follow these steps:

{% stepper %}
{% step %}

### List Docker containers

List all Docker containers using the following command to obtain the ID of the `server-m2` container:

```
sudo docker ps
```

Press **Enter** to confirm your entry.
{% endstep %}

{% step %}

### Insert the container ID

Copy the ID of the `server-m2` Docker container and insert it into the following command:

```
sudo docker logs <ContainerID>
```

Press **Enter** to confirm your entry.
{% endstep %}

{% step %}

### Retrieve initial login credentials

The login credentials for the initial sign-in to the Enginsight platform are shown as follows.

<div align="left"><figure><img src="https://content.gitbook.com/content/V7OrHgKXA0t1jankQBYf/blobs/F7dlZfKgvvqkufFouMHI/image%20(11).png" alt=""><figcaption></figcaption></figure></div>

{% hint style="warning" %}
**Please note:** We strongly recommend that you store the initial login credentials in a secure location.
{% endhint %}
{% endstep %}

{% step %}

### Log in to the Enginsight platform

1. Open the Enginsight user interface using the App URL that you also specified in the setup script: `https://<DomainApp>`

{% hint style="warning" %}
**Please note:** If you have not yet configured [HTTPS Encryption](https://docs.enginsight.com/docs/manual/english/installation-and-configuration/installation-and-configuration/additional-configurations/https-encryption.md), the App URL must begin with `http://`.
{% endhint %}

2. Log in using your initial login credentials.
   {% endstep %}

{% step %}

### Change the initial login credentials

{% hint style="danger" %}
**Please note:** For security reasons, it is essential that you change the initial login credentials immediately after signing in to the Enginsight platform for the first time.
{% endhint %}

1. In the Enginsight platform, navigate to **Settings** → **User Account**.
2. Update the email address in the **Email** field and confirm your changes by clicking **Save Changes**.
3. Create a new password in the **Password** section and confirm your changes by clicking **Save Changes**.

{% hint style="warning" %}
**Please note:** We recommend that you store username and password for the Enginsight platform in a password manager.
{% endhint %}
{% endstep %}
{% endstepper %}

***

## Limiting the Storage Usage of Docker Logs

Follow these steps to limit the storage usage of your Docker logs:

{% stepper %}
{% step %}

### Open the Docker service configuration

Open the Docker service configuration using the following command:

```
sudo nano /etc/docker/daemon.json
```

Press **Enter** to confirm your entry.
{% endstep %}

{% step %}

### Limit Docker log storage usage

Limit Docker log storage usage to 100 MB by inserting the following section into the file:

```
{  
  "log-driver": "json-file",  
  "log-opts": {
    "max-size": "100m",
    "max-file": "30"  
  }
}
```

Save the changes to the file (**Ctrl** + **o**) and confirm the save process. Close the file (**Ctrl** + **x**).
{% endstep %}

{% step %}

### Restart the Docker service

Restart the Docker service using the following command:

```
sudo systemctl restart docker
```

Press **Enter** to confirm your entry.
{% endstep %}
{% endstepper %}

***

## Setting up a Cron Job for Automatic Updates

While the automatic installation already sets up a system-wide cron job to regularly run the update script for the Enginsight platform, you must set up this cron job manually when performing a manual installation.

To do so, follow the instructions in the chapter [Automatic Update](https://docs.enginsight.com/docs/manual/english/installation-and-configuration/updates/enginsight-platform/automatic-update.md).

***

## Next Steps

Continue with the manual [TLS encryption of the database](https://docs.enginsight.com/docs/manual/english/installation-and-configuration/installation-and-configuration/enginsight-platform/manual-installation/tls-encryption-for-database.md).

***

## Further Resources

**Knowledge Base**

* [How do I reset the initial login credentials for the Enginsight platform?](https://docs.enginsight.com/docs/knowledge-base/english/database/how-do-i-reset-the-initial-login-credentials-for-the-enginsight-platform)
* [Which Docker containers run on the Enginsight Application Server and how do I view them?](https://docs.enginsight.com/docs/knowledge-base/english/configuration/which-docker-containers-run-on-the-enginsight-application-server-and-how-do-i-view-them)

***
