Skip to Content

Docker Setup

ClearSight ships with Docker Compose configurations for both development and production.

Development

The dev setup runs 5 services with live reloading:

git clone https://github.com/thepranaygupta/clearsight.git cd clearsight cp .env.example .env # fill in your values pnpm docker:dev

Services started:

ServicePortDescription
app3000Next.js dev server with Turbopack
workerBullMQ processors (no port)
postgres5432PostgreSQL 16
redis6379Redis 7
bull-board3001Queue monitoring UI
docs3002Nextra docs site

Source files are volume-mounted into the container — changes to src/ hot-reload immediately.

To stop:

pnpm docker:dev:down

Without Docker

If you prefer to run services manually:

# 1. Install dependencies pnpm install # 2. Set up the database pnpm db:migrate # 3. Start the Next.js app pnpm dev # 4. In a separate terminal, start the worker pnpm worker

Redis and PostgreSQL must be running and accessible at the URLs in your .env.

Next steps

Last updated on