Docker image containing Cassandra Server
Environment variables may be used to customize/override cassandra default properties.
ENV vars should be passed when running container.
EXTERNAL_CONFIGURATION: "true" can be set to skip any customizations. You may want to set this when
/etc/cassandra is mounted as an external volume.
Below you can find a list of available variables and corresponding properties.
CASSANDRA_CLUSTER_NAME - The name of the cluster (
CASSANDRA_LISTEN_ADDRESS - The IP address or hostname that Cassandra binds to for connecting to other Cassandra nodes (
CASSANDRA_ENDPOINT_SNITCH - A class used for locating nodes and routing requests (
If set to
GossipingPropertyFileSnitch, the following variables can be used to specify
CASSANDRA_RPC_ADDRESS - The listen address for client connections (Thrift RPC service and native transport) (
CASSANDRA_SEEDS - A comma-delimited list of IP addresses used by gossip for bootstrapping new nodes joining a cluster (
CASSANDRA_COMMITLOG_TOTAL - Total space used for commitlogs (
CASSANDRA_BROADCAST_ADDRESS - The IP address a node tells other nodes in the cluster to contact it by (
CASSANDRA_NUM_TOKENS - Defines the number of tokens randomly assigned to this node on the ring when using vnodes (
CASSANDRA_BROADCAST_RPC_ADDRESS - RPC address to broadcast to drivers and other Cassandra nodes (
CASSANDRA_START_RPC - Controls start of the Thrift RPC server (
CASSANDRA_AUTHENTICATOR - The authentication backend (
CASSANDRA_AUTHORIZER - The authorization backend (
MAX_HEAP_SIZE - Sets the maximum heap size for the JVM (
HEAP_NEWSIZE - The size of the young generation (
JMX_PORT - The JMX listen port (
LOCAL_JMX - By default Cassandra ships with JMX accessible only from localhost. To enable remote JMX connections set
LOCAL_JMX: "no". You may want to set additional Java properties, e.g.
java.rmi.server.hostname, etc. (see
CUSTOM_JVM_OPTS for examples).
CUSTOM_JVM_OPTS - Additional parameters appended to JVM_OPTS, e.g.:
CUSTOM_JVM_OPTS: "-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=192.168.56.100"