-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
85 lines (84 loc) · 1.66 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
version: '2'
services:
backend-1:
image: cassandra:${CASSTAG}
networks:
- backend
ports:
- 9044:9042
mem_limit: 2G
cap_add:
- IPC_LOCK
ulimits:
memlock: -1
environment:
- HEAP_NEWSIZE=128M
- MAX_HEAP_SIZE=1024M
- CASSANDRA_SEEDS=backend-1
- CASSANDRA_CLUSTER_NAME=c3-${CASSTAG}-cluster
backend-2:
image: cassandra:${CASSTAG}
networks:
- backend
mem_limit: 2G
cap_add:
- IPC_LOCK
ulimits:
memlock: -1
depends_on:
- backend-1
environment:
- HEAP_NEWSIZE=128M
- MAX_HEAP_SIZE=1024M
- CASSANDRA_SEEDS=backend-1
- CASSANDRA_CLUSTER_NAME=c3-${CASSTAG}-cluster
backend-3:
image: cassandra:${CASSTAG}
networks:
- backend
mem_limit: 2G
cap_add:
- IPC_LOCK
ulimits:
memlock: -1
depends_on:
- backend-2
environment:
- HEAP_NEWSIZE=128M
- MAX_HEAP_SIZE=1024M
- CASSANDRA_SEEDS=backend-1
- CASSANDRA_CLUSTER_NAME=c3-${CASSTAG}-cluster
stargate:
image: stargateio/stargate-3_11:${SGTAG}
depends_on:
- backend-1
networks:
- backend
ports:
# cql
- 9045:9042
# graphql
- 8080:8080
# auth
- 8081:8081
# REST
- 8082:8082
# health
- 8084:8084
# grpc
- 8090:8090
mem_limit: 2G
cap_add:
- IPC_LOCK
ulimits:
memlock: -1
environment:
- JAVA_OPTS="-Xmx2G"
- CLUSTER_NAME=c3-${CASSTAG}-cluster
- CLUSTER_VERSION=3.11
- SEED=backend-1
- RACK_NAME=rack1
- DATACENTER_NAME=datacenter1
- ENABLE_AUTH=true
networks:
backend: