> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uselotus.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 👤 Self-Hosting

> Best if you want to keep your data local or want full control and extensibility.

### 💻 Local Hobby Instance

> **Minimum requirements:**<br />
> 2 core, 4G ram and 20GB Disk space

1. Install [Docker Desktop](https://www.docker.com/products/docker-desktop/) and make sure docker has started.
2. Clone the repo and navigate to the project
   ```sh theme={null}
   git clone https://github.com/uselotus/lotus.git && cd lotus
   ```
3. Run the self-hosting script:
   ```sh theme={null}
    ./scripts/self-host.sh
   ```
   If you need to give the script permission to run, run `chmod 755 ./scripts/self-host.sh` first.
4. You should now be able to access the homepage at [localhost/](http://localhost/), and sign in using the `ADMIN_USERNAME` and `ADMIN_PASSWORD` you defined, or the default, which is:
   ```py theme={null}
   username: change_me
   password: change_me
   ```

Optionally:

* Change the environment variables located in `env/.env.prod` to suit your needs.

### Local Hobby Env variables

| Variable Name             | (Default) Value                          | Change? |
| ------------------------- | ---------------------------------------- | ------- |
| POSTGRES\_USER            | lotus                                    | ✔       |
| POSTGRES\_DB              | lotus                                    | ✔       |
| POSTGRES\_PASSWORD        | lotus                                    | ✔       |
| SECRET\_KEY               | change\_me                               | ✔       |
| ADMIN\_USERNAME           | change\_me                               | ✔       |
| ADMIN\_EMAIL              | change\_me                               | ✔       |
| ADMIN\_PASSWORD           | change\_me                               | ✔       |
| SELF\_HOSTED              | True                                     |         |
| DOCKERIZED                | True                                     |         |
| DJANGO\_SETTINGS\_MODULE  | "lotus.settings"                         |         |
| NODE\_ENV                 | production                               |         |
| VITE\_API\_URL            | "[http://localhost/](http://localhost/)" |         |
| STRIPE\_LIVE\_SECRET\_KEY | sk\_live\_                               | ✔       |
| STRIPE\_LIVE\_CLIENT      | ca\_                                     | ✔       |
| STRIPE\_TEST\_SECRET\_KEY | sk\_test\_                               | ✔       |
| STRIPE\_TEST\_CLIENT      | ca\_                                     | ✔       |
| STRIPE\_WEBHOOK\_SECRET   | whsec\_                                  | ✔       |
| SVIX\_JWT\_SECRET         | change\_me                               | ✔       |
