-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
docker-compose.yml
97 lines (93 loc) · 2.21 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
96
97
services:
cassandra:
build:
context: ./test/docker
dockerfile: cassandra.dockerfile
args:
CASSANDRA_VERSION: "${CASSANDRA_VERSION:-4.1}"
ports:
- "9052:9042" # TCP connections
- "9152:9142" # TLS/SSL connections
environment:
- HEAP_NEWSIZE=1M
- MAX_HEAP_SIZE=200M
healthcheck:
test: [ "CMD-SHELL", "nodetool -h ::FFFF:127.0.0.1 status" ]
interval: 20s
timeout: 10s
retries: 12
logging:
driver: "json-file"
options:
max-size: 50m
cassandra_with_auth:
build:
context: ./test/docker
dockerfile: cassandra.dockerfile
args:
AUTHENTICATION: "true"
CASSANDRA_VERSION: "${CASSANDRA_VERSION:-4.1}"
ports:
- "9053:9042"
environment:
- HEAP_NEWSIZE=1M
- MAX_HEAP_SIZE=200M
healthcheck:
test: [ "CMD-SHELL", "nodetool -h ::FFFF:127.0.0.1 status" ]
interval: 20s
timeout: 10s
retries: 12
logging:
driver: "json-file"
options:
max-size: 50m
scylladb:
build:
context: ./test/docker
dockerfile: scylladb.dockerfile
args:
SCYLLA_VERSION: ${SCYLLA_VERSION:-5.2}
ports:
- "9062:9042"
command:
- "--smp"
- "1"
healthcheck:
test: [ "CMD-SHELL", "nodetool -h ::FFFF:127.0.0.1 status" ]
interval: 20s
timeout: 10s
retries: 12
logging:
driver: "json-file"
options:
max-size: 50m
scylladb_with_auth:
build:
context: ./test/docker
dockerfile: scylladb.dockerfile
args:
SCYLLA_VERSION: ${SCYLLA_VERSION:-5.1.6}
AUTHENTICATION: "true"
ports:
- "9063:9042"
command:
- "--smp"
- "1"
healthcheck:
test: [ "CMD-SHELL", "nodetool -h ::FFFF:127.0.0.1 status" ]
interval: 20s
timeout: 10s
retries: 12
logging:
driver: "json-file"
options:
max-size: 50m
toxiproxy:
image: ghcr.io/shopify/toxiproxy:2.6.0
command: -host 0.0.0.0
volumes:
- ./test/toxiproxy_config.json:/config/toxiproxy.json
ports:
- "8474:8474" # Toxiproxy HTTP API
- "19052:9042" # Cassandra
- "19062:9043" # ScyllaDB