Self-Hosting the LightLayer App: Getting Started

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.


Self-Hosted LightLayer Architecture

LightLayer Arch Diagram v0.2.png


Prerequisites

Before you begin, ensure you have the following installed and set up:


Quick Start

For a local setup, you can use the provided quick-start script:

  1. Clone the repository:

    git clone <https://github.com/lightlayer-dev/lightlayer.git>
    cd lightlayer
    
  2. 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