Ligase is designed to be a Cloud Native application. We recommend deploy Ligase via docker.
This document shows how to start up Ligase on a single machine
- Go 1.13 or higher
- Postgres 9.5 or higher
- Apache Kafka 0.10.2+
recommended way:
docker-compose up -d
./build.sh
docker build -t ligase .
./build.sh
add those to /etc/hosts if you want to run ligase in your local host.
127.0.0.1 pg-master
127.0.0.1 zookeeper
127.0.0.1 kafka
127.0.0.1 redis
127.0.0.1 nats
Replace ./config/config.yaml with your own configuration if you didn't use the recommended way to setup denpendent services.
docker run --network ligase_default --expose 8008 --detach --name ligase ligase
-
In order to run ligase in your local host, follow the steps in https://github.com/edenhill/librdkafka to install librdkafka first.
-
Then start ligase by:
export SERVICE_NAME=monolith
./start.sh