
Deploy ClickHouse on Your Own Server
Fast open-source column-oriented database management system for real-time analytics
Want to deploy ClickHouse on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.
What is ClickHouse?
ClickHouse is a fast open-source column-oriented database management system that allows generating analytical data reports in real-time using SQL queries. This template will deploy ClickHouse with persistent storage and optional authentication configuration.
Self-Host ClickHouse
Follow these steps to deploy on your own server.
Install Docker
Skip this step if Docker is already installed on your server.
curl -fsSL https://get.docker.com | sh
Configure
Customize the settings below. Defaults work for most cases.
General
Deploy
Copy the configuration and run it on your server.
services:
clickhouse:
image: clickhouse/clickhouse-server:24.11-alpine
environment:
CLICKHOUSE_DB: default
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: "1"
CLICKHOUSE_PASSWORD: 39a2ee636eb3aebd
CLICKHOUSE_USER: clickhouse
volumes:
- clickhouse-data:/var/lib/clickhouse
volumes:
clickhouse-data: {}
Then run:
docker compose up -d
Access
Once started, access your app at http://localhost:80
Why Self-Host ClickHouse?
Full Data Ownership
Your data stays on your servers. No third-party access.
No Monthly Fees
Pay only for your server. No per-seat or usage charges.
Complete Control
Customize, backup, and scale on your own terms.
Privacy & Compliance
Meet GDPR, HIPAA, or internal security requirements.
Technical Details
Docker Image
clickhouse/clickhouse-server:${clickhouse_version}Want to go faster?
Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.
Install on any Linux server:
sh -c "$(curl -sSL https://get.senate.sh)"