forked from prydonius/bitnami-docker-cassandra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-cluster.yml
38 lines (38 loc) · 1.22 KB
/
docker-compose-cluster.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '2'
services:
cassandra:
image: docker.io/bitnami/cassandra:3-debian-10
ports:
- 7000:7000
- 9042:9042
volumes:
- cassandra_data:/bitnami
environment:
- CASSANDRA_SEEDS=cassandra,cassandra2
- CASSANDRA_CLUSTER_NAME=cassandra-cluster
- CASSANDRA_PASSWORD_SEEDER=yes
- CASSANDRA_PASSWORD=cassandra
# By default, Cassandra autodetects the available host memory and takes as much as it can.
# Therefore, memory options are mandatory if multiple Cassandras are launched in the same node.
- MAX_HEAP_SIZE=2G
- HEAP_NEWSIZE=200M
cassandra2:
image: docker.io/bitnami/cassandra:3-debian-10
ports:
- 7001:7000
- 9043:9042
volumes:
- cassandra2_data:/bitnami
environment:
- CASSANDRA_SEEDS=cassandra,cassandra2
- CASSANDRA_CLUSTER_NAME=cassandra-cluster
- CASSANDRA_PASSWORD=cassandra
# By default, Cassandra autodetects the available host memory and takes as much as it can.
# Therefore, memory options are mandatory if multiple Cassandras are launched in the same node.
- MAX_HEAP_SIZE=2G
- HEAP_NEWSIZE=200M
volumes:
cassandra_data:
driver: local
cassandra2_data:
driver: local