Levelrail
Skip to content

Self-host ClickHouse with Docker ​

A columnar database built for fast analytical queries over large datasets.

This page describes the Levelrail template for ClickHouse (Database Tools). It deploys the services below as one Docker Compose app on your own server.

Project site: https://hub.docker.com/r/clickhouse/clickhouse-server.

Recommended memory: about 1024 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
clickhouseclickhouse/clickhouse-server:26.3-alpine8123
clickhouse_data -> /var/lib/clickhouse

Environment variables ​

ServiceVariableValue
clickhouseCLICKHOUSE_PASSWORDGenerated at deploy

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

Deploy ClickHouse with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select ClickHouse. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates deploy clickhouse --name my-clickhouse

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Database Tools templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.