Full Setup

There are two ways of setting up a full version of Corlink:

This is the recommended way of setting up Corlink. It is the easiest and fastest way to get a full instance of Corlink up and running.

Prerequisites

Steps

  1. Acquire the docker-compose.yml file from the Corlink repository.
  • You can find the file here.
  1. Setup the folders for the database and other volumes where your docker-compose.yml file is located.
mkdir -p postgres/
  1. Edit the docker-compose.yml files environment variables.
When changing the POSTGRES_USER, POSTGRES_PASSWORD, and POSTGRES_DB variables, you will also need to change the DB_USER, DB_PASSWORD, and DB_NAME variables in the corlink-server service.
Make sure to change the ADMIN_KEY to a secure key. Below is a command to generate a secure key.
openssl rand -base64 32
VariableDescriptionService
POSTGRES_USERThe user of the database. (Default is fine)postgres
POSTGRES_PASSWORDThe password of the database. (Default is fine)postgres
POSTGRES_DBThe name of the database. (Default is fine)postgres
ADMIN_KEYThe admin key for the Corlink API.corlink-server
DB_HOSTThe host of the database. LEAVE DEFAULTcorlink-server
DB_USERThe user of the database. (default value is fine)corlink-server
DB_PASSWORDThe password of the database. (default value is fine)corlink-server
DB_NAMEThe name of the database. (default value is fine)corlink-server
DB_PORTThe port of the database. (default value is fine)corlink-server
DISCORD_TOKENA discord token associated with a bot. (See setup here)corlink-bot
GUILD_IDThe guild ID of the discord server.corlink-bot
LICENSING_SERVER_URLThe URL of the licensing server. (Default is fine)corlink-bot
LICENSING_SERVER_TOKENThe token of the licensing server. (Default is fine)corlink-bot
OWNER_IDThe owner ID of the discord bot (or the server).corlink-bot
  1. Run the docker-compose.yml file.
docker-compose up -d
  1. You should now have a full instance of Corlink running.

Manual

This is the manual way of setting up Corlink. It is not recommended, but it is possible.

Prerequisites

Steps

  1. Clone the Corlink repository.
git clone https://github.com/ruby-network/corlink.git
  1. Setup the database.
cd corlink 
psql -U postgres -c "CREATE DATABASE corlink;"
psql -U postgres -c "CREATE USER corlink WITH PASSWORD 'corlink';"
psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE corlink TO corlink;"
  1. Run the makefile.
make
  1. Follow specific instructions for the bot and server.
  1. Start Services (in other guides).