Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
A column-oriented SQL database for analytical queries over large tables, with an HTTP interface, a native TCP protocol and a built-in browser query page. Apache-2.0. A single server runs as one container; upstream recommends 32 GB of RAM or more, says it can run with as little as 2 GB with extra tuning, and the amd64 image needs an x86-64-v3 CPU (AVX2).
Runs on a VPS from $12/mo (Kamatera 4GB, 4 GB RAM) · prices checked Nov 2026
Fits home hardware (143 MB measured idle, RAM only): Raspberry Pi 4 (4 GB) (arm64 untested), Raspberry Pi 5 (8 GB) (arm64 untested), Repurposed laptop (8 GB), Intel N100 mini PC (16 GB), AMD Ryzen mini PC (32 GB).
Paid link — we earn a commission if you shop through it.
Run these commands on your server:
# ClickHouse single server — based on the clickhouse/clickhouse-server image README, pinned to 26.8.49.6 (LTS)
# The image gives the passwordless default user no network access; setting a user and password creates one that has it
mkdir clickhouse && cd clickhouse
echo "CLICKHOUSE_PASSWORD=$(openssl rand -hex 16)" > .env
cat > docker-compose.yml <<'EOF'
services:
clickhouse:
image: clickhouse/clickhouse-server:26.8.49.6
restart: unless-stopped
environment:
CLICKHOUSE_USER: admin
CLICKHOUSE_PASSWORD: ${CLICKHOUSE_PASSWORD}
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
ulimits:
nofile:
soft: 262144
hard: 262144
ports:
- "8123:8123"
- "9000:9000"
volumes:
- clickhouse-data:/var/lib/clickhouse
- clickhouse-logs:/var/log/clickhouse-server
volumes:
clickhouse-data:
clickhouse-logs:
EOF
docker compose up -d
timeout 180 bash -c 'until curl -sf http://localhost:8123/ping; do sleep 3; done'
. ./.env
curl -sf -u "admin:$CLICKHOUSE_PASSWORD" http://localhost:8123/ -d 'SELECT version()'
# → http://SERVER_IP:8123/play — query page, user admin with the password in .env; native protocol on 9000. Both are unencrypted, so firewall themClickHouse used 143 MB of RAM at idle on GCP e2-standard-2 · Ubuntu 26.04 LTS · Docker 29.10.1 (first boot, measured Nov 2026). We list a minimum of 2048 MB.
The ClickHouse install snippet is marked verified on Ubuntu 26.04 (Nov 2026).