Local Setup
Learn how to run Julep locally
Overview
Juelp is designed to be run locally with the help of Docker. This guide will help you set up Julep locally.
Prerequisites
Setup Instructions
1. Clone the Repository
Clone the repository from your preferred source:
2. Navigate to the Root Directory
Change to the root directory of the project:
3. Set Up Environment Variables
- Create a
.env
file in the root directory. - Refer to the
.env.example
file for a list of required variables. - Ensure that all necessary variables are set in the
.env
file.
4. Create a Docker Volume for Backup
Create a Docker volume named grafana_data
, memory_store_data
, temporal-db-data
, prometheus_data
and seadweedfs_data
:
The volumes are used to store the data for the Grafana, Memory Store (Timescale DB), Temporal DB, Prometheus, and SeadweedFS, and Memories respectively.
5. Run the Project using Docker Compose
You can run the project in two different modes: Single Tenant or Multi-Tenant. Choose one of the following commands based on your requirement:
Single-Tenant Mode
Run the project in single-tenant mode:
Note: In single-tenant mode, you can interact with the SDK directly without the need for the API KEY.
Multi-Tenant Mode
Run the project in multi-tenant mode:
Note: In multi-tenant mode, you need to generate a JWT token locally that act as an API KEY to interact with the SDK.
6. Generate a JWT Token (Only for Multi-Tenant Mode)
To generate a JWT token, jwt-cli
is required. Kindly install the same before proceeding with the next steps.
Use the following command and replace JWT_SHARED_KEY
with the corresponding key from your .env
file to generate a JWT token:
This command generates a JWT token that will be valid for 10 days.
7. Access and Interact
- Temporal UI: You can access the Temporal UI through the specified port in your
.env
file. - API Interactions: Depending on the chosen mode, interact with the setup using the provided endpoints.
Troubleshooting
- Ensure that all required Docker images are available.
- Check for missing environment variables in the
.env
file. - Use the
docker compose logs
command to view detailed logs for debugging.
Support
If you need help with further questions in Julep:
- Join our Discord community
- Check the GitHub repository
- Contact support at hey@julep.ai