Clone the repository and set the minimum contract.
Clone the repository, pin the explicit 2.1.0 image tag, and copy the example environment. Configure the database password, public URL values, NEXTAUTH_SECRET, API_KEY_SECRET, and the stable 64-hex-character ENCRYPTION_KEY. Other provider or API secrets are conditional on the features you enable.
git clone https://github.com/opsknight-labs/opsknight.git
cd opsknight && cp env.example .env
# Configure environment variables in .env:
OPSKNIGHT_IMAGE=ghcr.io/opsknight-labs/opsknight:2.1.0
POSTGRES_PASSWORD=<unique-password>
NEXTAUTH_URL=http://localhost:3000
NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXTAUTH_SECRET=<random-base64-secret>
API_KEY_SECRET=<separate-base64-secret>
ENCRYPTION_KEY=<64-hex-character-key>