# 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](https://docs.uibakery.io/on-premise/install-and-update/recommendations/generate-custom-secrets) 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`.
