π» 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
- Run the self-hosting script:
If you need to give the script permission to run, run
chmod 755 ./scripts/self-host.shfirst. - You should now be able to access the homepage at localhost/, and sign in using the
ADMIN_USERNAMEandADMIN_PASSWORDyou defined, or the default, which is:
- Change the environment variables located in
env/.env.prodto 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 | β |