-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
87 lines (82 loc) · 2.32 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
version: '2'
services:
scylladb-01:
image: scylladb/scylla:5.2.2
networks:
scylla_net:
ipv4_address: 172.19.0.2
healthcheck:
test: ["CMD-SHELL", "sh -c $(curl -s -X GET --header 'Accept: application/json' 'http://localhost:10000/storage_service/native_transport')"]
interval: 30s
timeout: 10s
retries: 5
container_name: scylladb-01
ports:
- 9042:9042
hostname: scylladb-01
command: "--seeds 172.19.0.2 --cpuset 0 --memory 256M --developer-mode 1 --api-address 127.0.0.1"
cap_add:
- SYS_NICE
# Uncomment these to run various nodes in distributed fashion
# scylladb-02:
# image: scylladb/scylla:5.2.2
# networks:
# scylla_net:
# ipv4_address: 172.19.0.3
# container_name: scylladb-02
# ports:
# - 9043:9042
# hostname: scylladb-02
# command: "--seeds 172.19.0.2 --cpuset 1 --memory 256M --developer-mode 1 --api-address 127.0.0.1"
# cap_add:
# - SYS_NICE
# healthcheck:
# test: ["CMD-SHELL", "sh -c $(curl -s -X GET --header 'Accept: application/json' 'http://localhost:10000/storage_service/native_transport')"]
# interval: 30s
# timeout: 10s
# retries: 5
# depends_on:
# scylladb-01:
# condition: service_healthy
# scylladb-03:
# image: scylladb/scylla:5.2.2
# networks:
# scylla_net:
# ipv4_address: 172.19.0.4
# container_name: scylladb-03
# ports:
# - 9044:9042
# hostname: scylladb-03
# command: "--seeds 172.19.0.2 --cpuset 2 --memory 256M --developer-mode 1 --api-address 127.0.0.1"
# cap_add:
# - SYS_NICE
# healthcheck:
# test: ["CMD-SHELL", "sh -c $(curl -s -X GET --header 'Accept: application/json' 'http://localhost:10000/storage_service/native_transport')"]
# interval: 30s
# timeout: 10s
# retries: 5
# depends_on:
# scylladb-02:
# condition: service_healthy
redis:
image: redis
restart: always
ports:
- "6379:6379"
command: redis-server
volumes:
- redis:/var/lib/redies/data
depends_on:
scylladb-01:
condition: service_healthy
volumes:
redis:
driver: local
networks:
scylla_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.19.0.0/16
gateway: 172.19.0.1