-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
109 lines (108 loc) · 2.14 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
98
99
100
101
102
103
104
105
106
107
108
109
version: '2'
services:
backend-1:
image: cassandra:3.11.12
container_name: backend-1
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=backend
backend-2:
image: cassandra:3.11.12
container_name: backend-2
networks:
- backend
mem_limit: 2G
depends_on:
- backend-1
environment:
- HEAP_NEWSIZE=128M
- MAX_HEAP_SIZE=1024M
- CASSANDRA_SEEDS=backend-1
- CASSANDRA_CLUSTER_NAME=backend
backend-3:
image: cassandra:3.11.12
container_name: backend-3
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=backend
stargate:
image: stargateio/stargate-3_11:v1.0.0
container_name: stargate
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=backend
- CLUSTER_VERSION=3.11
- SEED=backend-1
- SIMPLE_SNITCH=true
- ENABLE_AUTH=true
prometheus:
image: prom/prometheus:latest
container_name: prometheus
depends_on:
- backend-1
- stargate
networks:
- backend
ports:
- 9090:9090
mem_limit: 2G
command:
- --config.file=/etc/prometheus/prometheus.yml
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
grafana:
image: grafana/grafana:latest
container_name: grafana
depends_on:
- backend-1
- stargate
networks:
- backend
ports:
- 3000:3000
networks:
backend: