Installation
Before deploying your Load Balancer, ensure you have configured your .env
and workers.json
files and reviewed the Deployment recommendations. Proper security setup is essential before exposing your service to any network.
Dependencies
- Node.js (version 18 or higher)
- npm or yarn
- Redis
- Docker (optional, for containerized deployment)
Manual Installation
-
Clone the Load Balancer repository:
git clone https://github.com/andera-top/load-balancer.git
cd load-balancer -
Install dependencies:
npm install
# or
yarn install -
Configure your
.env
by copying.env.example
. -
Start the Load Balancer:
npm run start
# or
yarn start
Docker Installation
-
Clone the repository and navigate to the folder:
git clone https://github.com/andera-top/load-balancer.git
cd load-balancer -
Configure your
.env
by copying.env.example
. -
Create a Docker network for Andera:
docker network create andera-net
-
Build and run the stack with Docker Compose:
docker-compose build
docker-compose upThis will start both Redis and the Load Balancer, and automatically mount your local
workers.json
file into the container for live updates (hot-reload).
Do not use
docker run
directly. The recommended way is to usedocker-compose up
to ensure all dependencies and configuration are handled correctly.
You are now ready to route and manage tasks with the Andera Load Balancer.