To self-host the LightLayer application, you will need to run several services and configure the environment variables correctly. The application uses Docker and Docker Compose to simplify deployments and manage its services, which include a frontend, backend, SuperTokens for authentication, PostgreSQL database, Redis, and an nginx web server.
Before you begin, ensure you have the following installed and set up:
For a local setup, you can use the provided quick-start script:
Clone the repository:
git clone <https://github.com/lightlayer-dev/lightlayer.git>
cd lightlayer
Set up environment variables: Copy the env.example
file to a new file named .env
and fill in the necessary values (see Environment Variable Configuration section below)
cp env.example .env