> For the complete documentation index, see [llms.txt](https://docs.taskforce.sh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.taskforce.sh/on-premises/docker/environment-variables.md).

# Environment variables

There are a bunch of environment variables that must be set up in order for the instance to run properly.

```properties
LICENSE_KEY

HOST

REDIS_URL

POSTGRES_HOST
POSTGRES_USER
POSTGRES_PORT
POSTGRES_DB
POSTGRES_PASSWD

AUTH0_CLIENTID
AUTH0_DOMAIN
AUTH0_AUDIENCE

MAILGUN_API_KEY
MAILGUN_DOMAIN


```

Let's go through these variables in detail.

#### License Key

The license key to use with this docker container. The container will exit if it is not able to contact <https://taskforce.sh> and validate the license.

You will find your license key on your Taskforce.sh [account](https://taskforce.sh/account/enterprise).

#### Host

This variable should point to the actual host running the dashboard, for example: <https://my.taskforce.dashboard.com>

#### Redis

The dashboard uses Redis for some internal communication and for the Monitoring and Alerts system. A small instance of about 128Mb RAM will be enough in most cases.

#### PostgreSQL

There are a few variables used to configure the required postgres database, just fill in the values for your database provider accordingly. You won't need a powerful PostgreSQL instance for the dashboard, any minimal instance will do.

#### Auth0

The authentication of the users is performed by Auth0. If you are not using Auth0 you can just create a free account which will most likely be enough for your needs. There are some steps involved in configuring Auth0 properly, please refer to this [guide](/on-premises/aws/configure-your-instance/configure-auth0.md).

#### Mailgun

Mailgun is used for sending alert messages as well as team invitations. You can get a Mailgun account with generous quotas for free, then just follow these [instructions](/on-premises/aws/configure-your-instance/configure-mailgun.md).

{% hint style="info" %}
Currently the dashboard will be exposed at port **9876,** and cannot be configured to a different port.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.taskforce.sh/on-premises/docker/environment-variables.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
