forked from scylladb/gocql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
95 lines (94 loc) · 2.36 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: "3.7"
services:
node_1:
image: ${SCYLLA_IMAGE}
privileged: true
command: |
--smp 2
--memory 768M
--seeds 192.168.100.11
--overprovisioned 1
--experimental-features udf
--enable-user-defined-functions true
networks:
public:
ipv4_address: 192.168.100.11
volumes:
- type: bind
source: ./testdata/config/scylla.yaml
target: /etc/scylla/scylla.yaml
- type: bind
source: ./testdata/pki/ca.crt
target: /etc/scylla/ca.crt
- type: bind
source: ./testdata/pki/cassandra.crt
target: /etc/scylla/db.crt
- type: bind
source: ./testdata/pki/cassandra.key
target: /etc/scylla/db.key
healthcheck:
test: [ "CMD", "cqlsh", "-e", "select * from system.local" ]
interval: 5s
timeout: 5s
retries: 18
node_2:
image: scylladb/scylla-nightly
command: |
--experimental-features consistent-topology-changes
--experimental-features tablets
--smp 2
--memory 1G
--seeds 192.168.100.12
networks:
public:
ipv4_address: 192.168.100.12
healthcheck:
test: [ "CMD", "cqlsh", "192.168.100.12", "-e", "select * from system.local" ]
interval: 5s
timeout: 5s
retries: 18
node_3:
image: scylladb/scylla-nightly
command: |
--experimental-features consistent-topology-changes
--experimental-features tablets
--smp 2
--memory 1G
--seeds 192.168.100.12
networks:
public:
ipv4_address: 192.168.100.13
healthcheck:
test: [ "CMD", "cqlsh", "192.168.100.13", "-e", "select * from system.local" ]
interval: 5s
timeout: 5s
retries: 18
depends_on:
node_2:
condition: service_healthy
node_4:
image: scylladb/scylla-nightly
command: |
--experimental-features consistent-topology-changes
--experimental-features tablets
--smp 2
--memory 1G
--seeds 192.168.100.12
networks:
public:
ipv4_address: 192.168.100.14
healthcheck:
test: [ "CMD", "cqlsh", "192.168.100.14", "-e", "select * from system.local" ]
interval: 5s
timeout: 5s
retries: 18
depends_on:
node_3:
condition: service_healthy
networks:
public:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.100.0/24