-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.45 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
version: '2'
services:
cassandra-seed:
image: registry.steelhouse.com:443/cassandra:3.3
#build: .
ports:
- "7000"
- "7001"
- "7199"
- "9042:9042"
- "9160:9160"
environment:
- CASSANDRA_CLUSTER_NAME=dal05
- CASSANDRA_DC=dal05
- CASSANDRA_RACK=rac1
- CASSANDRA_ENDPOINT_SNITCH=GossipingPropertyFileSnitch
- INIT_SQLS=users_keyspace.sql
volumes:
- ./data/3.3:/var/lib/cassandra
hostname: cassandra-seed
networks:
steelhouse:
cassandra-node:
image: registry.steelhouse.com:443/cassandra:3.3
#build: .
ports:
- "7000"
- "7001"
- "7199"
- "9042"
- "9160"
links:
- cassandra-seed
environment:
- CASSANDRA_SEEDS=cassandra-seed
- CASSANDRA_CLUSTER_NAME=dal05
- CASSANDRA_DC=dal05
- CASSANDRA_RACK=rac1
- CASSANDRA_ENDPOINT_SNITCH=GossipingPropertyFileSnitch
volumes:
- cassandra-node-vol:/var/lib/cassandra
networks:
steelhouse:
volumes:
# cassandra-seed-vol:
cassandra-node-vol:
networks:
steelhouse:
# docker run --name some-cassandra2 -d -e CASSANDRA_SEEDS="$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' some-cassandra)" cassandra:tag