-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) 路 803 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (32 loc) 路 803 Bytes
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
services:
cassandra:
image: cassandra:5
container_name: magda-cassandra
ports:
- "9042:9042"
environment:
- CASSANDRA_CLUSTER_NAME=magda-dev
- CASSANDRA_DC=dc1
- CASSANDRA_RACK=rack1
- MAX_HEAP_SIZE=512M
- HEAP_NEWSIZE=128M
volumes:
- cassandra-data:/var/lib/cassandra
healthcheck:
test: ["CMD-SHELL", "cqlsh -e 'describe cluster'"]
interval: 15s
timeout: 10s
retries: 10
start_period: 60s
cassandra-init:
image: cassandra:5
container_name: magda-cassandra-init
depends_on:
cassandra:
condition: service_healthy
volumes:
- ./scripts/init-cassandra.cql:/init.cql
entrypoint: ["cqlsh", "cassandra", "-f", "/init.cql"]
restart: "no"
volumes:
cassandra-data: