-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.scylla.yml
More file actions
46 lines (43 loc) · 1.16 KB
/
compose.scylla.yml
File metadata and controls
46 lines (43 loc) · 1.16 KB
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
services:
scylla:
image: scylladb/scylla:5.4
container_name: gitstore-scylla
ports:
- "9042:9042" # CQL native transport
command: --developer-mode=1 --overprovisioned=1 --smp=1
volumes:
- scylla-data:/var/lib/scylla
networks:
- gitstore-network
healthcheck:
test: ["CMD-SHELL", "cqlsh -e 'describe cluster' 2>/dev/null || exit 1"]
interval: 15s
timeout: 10s
retries: 10
start_period: 30s
scylla-init:
image: scylladb/scylla:5.4
depends_on:
scylla:
condition: service_healthy
networks:
- gitstore-network
entrypoint: []
command: >
cqlsh scylla -e "
CREATE KEYSPACE IF NOT EXISTS gitstore
WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor': '1'}
AND durable_writes = true
"
restart: "no"
api:
depends_on:
scylla-init:
condition: service_completed_successfully
environment:
- GITSTORE_DATASTORE__BACKEND=scylla
- GITSTORE_DATASTORE__SCYLLA__HOSTS=scylla:9042
- GITSTORE_DATASTORE__SCYLLA__KEYSPACE=gitstore
volumes:
scylla-data:
driver: local