11 Deployment
Pan edited this page 2026-03-02 18:14:52 +01:00

Deployment

To deploy Nexo, you can follow these steps:

Docker compose

  1. Clone the repository:
git clone https://git.panintegr.al/Pan/nexo.git --depth=1
cd nexo
  1. Copy and modify .env.example:
cp .env.example .env
  1. Run the Docker compose command:
docker compose up -d
  1. 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

  1. Clone the repository:
git clone https://git.panintegr.al/Pan/nexo.git
cd nexo
  1. Build the project:
go mod tidy
go build -o nexo main.go
  1. Copy and modify .env.example:
cp .env.example .env
  1. Run the executable:
./nexo