Deployment
To deploy Nexo, you can follow these steps:
Docker compose
- Clone the repository:
git clone https://git.panintegr.al/Pan/nexo.git --depth=1
cd nexo
- Copy and modify
.env.example:
cp .env.example .env
- Run the Docker compose command:
docker compose up -d
- Get your master token from logs:
TOKEN=$(docker compose logs --no-color -f nexo 2>&1 | awk -F': ' '/MASTER TOKEN/{print $2; exit}')
echo "$TOKEN"
Manual deployment
- Clone the repository:
git clone https://git.panintegr.al/Pan/nexo.git
cd nexo
- Build the project:
go mod tidy
go build -o nexo main.go
- Copy and modify
.env.example:
cp .env.example .env
- Run the executable:
./nexo