Self-host HushNet

Spin up your own instance in minutes. Minimal Docker Compose example:

version: "3.9"
services:
  db:
    image: postgres:16-alpine
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: dev
      POSTGRES_DB: e2ee
    volumes:
      - ./sql_models:/docker-entrypoint-initdb.d
    ports:
      - "5432:5432"
  backend:
    image: ghcr.io/hushnet/backend:latest
    depends_on: [db]
    environment:
      DATABASE_URL: postgres://postgres:dev@db:5432/e2ee
      RUST_LOG: info
    ports:
      - "8080:8080"

Steps

  1. Clone the repository and copy .env.example.
  2. Run docker compose up -d.
  3. Check the API health (/health).
  4. Create users / devices via the API.