Skip to main content

Getting Started

Welcome to CH-UI! This guide will help you get up and running quickly with our modern interface for ClickHouse databases.

Quick Start ⚡

Choose your preferred installation method:

Simple Docker Setup

docker run --name ch-ui -p 5521:5521 ghcr.io/caioricciuti/ch-ui:latest

Docker with Environment Variables

docker run --name ch-ui -p 5521:5521 \
-e VITE_CLICKHOUSE_URL=http://your-clickhouse-server:8123 \
-e VITE_CLICKHOUSE_USER=your-username \
-e VITE_CLICKHOUSE_PASS=your-password \
ghcr.io/caioricciuti/ch-ui:latest

System Requirements 🖥️

Prerequisites

  • A running ClickHouse server (Installation Guide)
  • For Docker: Docker Engine 20.10.0 or newer
  • For building from source:
    • Node.js >= 20.x
    • npm >= 10.x

Configuration Options ⚙️

Environment Variables

VariableDescriptionRequiredDefault
VITE_CLICKHOUSE_URLClickHouse server URLYes-
VITE_CLICKHOUSE_USERClickHouse usernameNo""
VITE_CLICKHOUSE_PASSClickHouse passwordNo""
VITE_CLICKHOUSE_USE_ADVANCEDEnable advanced featuresNofalse
VITE_CLICKHOUSE_CUSTOM_PATHCustom HTTP pathNo-

Advanced Features

When VITE_CLICKHOUSE_USE_ADVANCED is enabled:

  • VITE_CLICKHOUSE_CUSTOM_PATH is required to set a custom HTTP path for ClickHouse
  • The path should be relative to the ClickHouse server URL, without the protocol (e.g., "/path/to/clickhouse")

Development Environment 🛠️

Local ClickHouse Instance

Run a local ClickHouse instance for development:

# Start ClickHouse
docker-compose -f docker-compose-dev.yml up -d

# Stop ClickHouse
docker-compose -f docker-compose-dev.yml down

Default credentials:

note

Data is persisted in .clickhouse_local_data directory.

Security Recommendations 🔒

Reverse Proxy Setup

  • Use Nginx/Apache as a reverse proxy
  • Enable HTTPS
  • Implement authentication

Network Security

  • Run on a private network when possible
  • Use VPN for remote access
  • Implement IP whitelisting

Access Control

  • Use minimal privilege ClickHouse users
  • Regularly rotate credentials
  • Monitor access logs

Support the Project

If you find CH-UI helpful, consider:

Buy Me A Coffee