Overview
π€ Self-Hosting
Best if you want to keep your data local or want full control and extensibility.
π» Local Hobby Instance
Minimum requirements:
2 core, 4G ram and 20GB Disk space
- Install Docker Desktop and make sure docker has started.
- Clone the repo and navigate to the project
git clone https://github.com/uselotus/lotus.git && cd lotus
- Run the self-hosting script:
If you need to give the script permission to run, run
./scripts/self-host.sh
chmod 755 ./scripts/self-host.sh
first. - You should now be able to access the homepage at localhost/, and sign in using the
ADMIN_USERNAME
andADMIN_PASSWORD
you defined, or the default, which is: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/β | |
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 | β |