# Windows installation

UI Bakery supports running its self-hosted version on Windows OS.&#x20;

In order to install it, follow the steps below:

1. Install [Docker Desktop](https://docs.docker.com/desktop/setup/install/windows-install/).

{% hint style="warning" %}
Docker has updated its license agreement according to which the commercial use of **Docker Desktop** in larger enterprises (more than 250 employees OR more than $10 million USD in annual revenue) now requires a <mark style="color:blue;">paid subscription</mark>.
{% endhint %}

If you fall under this limitation, you can still [install Docker without Docker Desktop](https://www.paulsblog.dev/how-to-install-docker-without-docker-desktop-on-windows/) on Windows since this license update is not related to *Docker* or the *Docker Engine*.

2. Create a folder that will contain UI Bakery configuration files - `mkdir ui-bakery-on-premise`.
3. Change the current working directory to the`cd ui-bakery-on-premise` folder.
4. Download the `docker-compose.yml` configuration file:\
   `Invoke-WebRequest -Uri https://raw.githubusercontent.com/uibakery/self-hosted/main/docker-compose.yml -OutFile docker-compose.yml`.
5. Create `.env` file from the template below (use this [guide](/on-premise/install-and-update/recommendations/generate-custom-secrets.md) to generate the secrets):

```
UI_BAKERY_APP_SERVER_NAME=http://localhost:3030
UI_BAKERY_PORT=3030
UI_BAKERY_JWT_SECRET=<42 ALPHABET LETTER/NUMBER CHARACTERS>
UI_BAKERY_JWT_SERVICE_ACCOUNT_SECRET=<55 ALPHABET LETTER/NUMBER CHARACTERS>
UI_BAKERY_JWT_REFRESH_SECRET=<42 ALPHABET LETTER/NUMBER CHARACTERS>
UI_BAKERY_CREDENTIALS_SECRET=<32 ALPHABET LETTER/NUMBER CHARACTERS>
UI_BAKERY_TEMPLATE_MAKER_PASSWORD=<SECURE PASSWORD TO ACCESS UI BAKERY TEMPLATE MAKER ACCOUNT>
UI_BAKERY_LICENSE_KEY=<YOUR LICENSE KEY RECEIVED FROM UI BAKERY TEAM>
```

6. Replace placeholders in the `.env` file with the appropriate secrets you generated.
7. Pull the containers and run them using the following command - `docker compose up -d`.


---

# 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.uibakery.io/on-premise/install-and-update/installing-on-premise-version/windows-installation.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.
