Self-host Apache Cassandra on a VPS
A single node Apache Cassandra wide-column database on the official image, with a persistent volume. It is not published on the host and starts without authentication, so reach it only from other services in this project at cassandra:9042. A node needs about 2 GB of memory.
levelrail-cli templates install cassandra --name my-cassandraSpecification
- Status
- Listed
- Category
- Database Tools
- Services
- cassandra
- Ports
- 9042
- Volumes
- 1
- Memory
- about 2 GiB
- arm64
- unknown
- amd64
- unknown
- Settings to fill in
- none
- License
- Permissive license, Apache-2.0
- Listing
- Community template
About Apache Cassandra
A single node Apache Cassandra wide-column database on the official image, with a persistent volume. It is not published on the host and starts without authentication, so reach it only from other services in this project at cassandra:9042. A node needs about 2 GB of memory.
What it deploys
Apache Cassandra runs as one service in a single Compose app, listening on port 9042, with 1 named volume mount.
| Service | Image | Tag | Ports | Volumes |
|---|---|---|---|---|
| cassandra | cassandra | 5.0.9 | 9042 | cassandra_data -> /var/lib/cassandra |
Before you install
- CPU architecture. arm64 unknown. The scan could not read a manifest or the tag is chosen at install time. This is not a claim either way.
- Listed. It is in the catalog. Back up the data volume before changing an image tag.
Settings and environment
You do not have to fill in anything. Values are never shown here.
| Service | Variable | Value |
|---|---|---|
| cassandra | CASSANDRA_CLUSTER_NAME | Preset by the template |
| cassandra | HEAP_NEWSIZE | Preset by the template |
| cassandra | MAX_HEAP_SIZE | Preset by the template |
First run
- The first start takes a few minutes. Connect from a service in the same project at cassandra:9042 with the CQL native protocol.
Install Apache Cassandra on a VPS
-
Install Levelrail on a fresh VPS
Run this as root on a Linux server (amd64 or arm64) with ports 80 and 443 reachable. The installer prints a setup link.
curl -fsSL https://levelrail.com/install.sh | sudo sh -
Sign in
Open the setup link, choose a password, then log the CLI in. The CLI install command is
curl -fsSL https://levelrail.com/install-cli.sh | shif the machine does not have it. See Getting started.levelrail-cli login --device -
Read the template
Shows the entry, including its full compose.yaml.
levelrail-cli templates get cassandra -
Install it
This template has an install form, so the CLI fills each setting from --env, a generated secret or its default.
levelrail-cli templates install cassandra --name my-cassandraTo put a service behind a domain at install, add
--domain SERVICE=HOST:levelrail-cli templates install cassandra --name my-cassandra --domain cassandra=cassandra.example.com
Without a domain the app gets an sslip.io address. You can also deploy it from the dashboard: Apps, New app, Browse templates, then Apache Cassandra.
Docs and upstream
More in Database Tools
- Apache SolrThe Apache Solr search platform on the official image, with a persistent volume. The admin interface has no login, so keep it private or put it behind an authenticating proxy before adding a public domain. Other services in this project reach it at solr:8983.
- AdminerA single-file database admin tool for MySQL, PostgreSQL, SQLite, and more.
- ArangoDBA multi model database for documents, graphs and key value data with a web interface, a generated root password and a data volume. Source available under the BSL for the community line.
- BaserowA no-code database and spreadsheet hybrid you can build internal tools and apps on top of.
- BytebaseA database schema change and migration tool with review workflows built in.
- ChromaA developer-friendly embedding database for AI applications, served over a simple HTTP API. Open to anyone who can reach it, so reach it from other services in this project at chroma:8000, or attach a domain only behind Basic Auth. Not published on the host.