πŸ’» Local Hobby Instance

Minimum requirements:
2 core, 4G ram and 20GB Disk space

  1. Install Docker Desktop and make sure docker has started.
  2. Clone the repo and navigate to the project
    git clone https://github.com/uselotus/lotus.git && cd lotus
    
  3. Run the self-hosting script:
     ./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/, and sign in using the ADMIN_USERNAME and ADMIN_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) ValueChange?
POSTGRES_USERlotusβœ”
POSTGRES_DBlotusβœ”
POSTGRES_PASSWORDlotusβœ”
SECRET_KEYchange_meβœ”
ADMIN_USERNAMEchange_meβœ”
ADMIN_EMAILchange_meβœ”
ADMIN_PASSWORDchange_meβœ”
SELF_HOSTEDTrue
DOCKERIZEDTrue
DJANGO_SETTINGS_MODULEβ€œlotus.settings”
NODE_ENVproduction
VITE_API_URL”http://localhost/”
STRIPE_LIVE_SECRET_KEYsk_live_βœ”
STRIPE_LIVE_CLIENTca_βœ”
STRIPE_TEST_SECRET_KEYsk_test_βœ”
STRIPE_TEST_CLIENTca_βœ”
STRIPE_WEBHOOK_SECRETwhsec_βœ”
SVIX_JWT_SECRETchange_meβœ”