-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
69 lines (65 loc) · 1.69 KB
/
docker-compose.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: "3.8"
networks:
cluster_net:
external: true
name: cassandra-net
services:
##################################
# CASSANDRA SEED #
##################################
seed:
image: lucasfs/cassandra-armhf
environment:
- MAX_HEAP_SIZE=430M
- HEAP_NEWSIZE=142M
- CASSANDRA_READ_REQUEST_TIMEOUT_IN_MS=60000
- CASSANDRA_WRITE_REQUEST_TIMEOUT_IN_MS=60000
- CASSANDRA_REQUEST_TIMEOUT_IN_MS=60000
deploy:
restart_policy:
condition: on-failure
max_attempts: 5
window: 120s
placement:
max_replicas_per_node: 1
constraints:
- node.labels.type == master
volumes:
- /mnt/storage/cassandra:/var/lib/cassandra
networks:
- cluster_net
ports:
- target: 9042
published: 9042
mode: host
##################################
# CASSANDRA NODE #
##################################
node:
image: lucasfs/cassandra-armhf
environment:
- SEEDS_SERVICE=seed
- MAX_HEAP_SIZE=430M
- HEAP_NEWSIZE=142M
- TASK_NAME={{.Task.Name}}
- WAIT_TIME=200
- CASSANDRA_READ_REQUEST_TIMEOUT_IN_MS=60000
- CASSANDRA_WRITE_REQUEST_TIMEOUT_IN_MS=60000
- CASSANDRA_REQUEST_TIMEOUT_IN_MS=60000
deploy:
restart_policy:
condition: on-failure
max_attempts: 10
window: 120s
placement:
max_replicas_per_node: 1
constraints:
- node.labels.type == slave
volumes:
- /mnt/storage/cassandra:/var/lib/cassandra
networks:
- cluster_net
ports:
- target: 9042
published: 9042
mode: host