-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (82 loc) · 1.83 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
version: "3"
services:
warehouse:
build:
context: .
dockerfile: warehouse/Dockerfile
ports:
- "8080:8080"
environment:
PORT: 8080
depends_on:
- cassandraSeed
- cassandra1
- cassandra2
restart: always
proxy:
build:
context: .
dockerfile: proxy/Dockerfile
ports:
- "8000:8000"
environment:
PORT: 8000
depends_on:
- warehouse
restart: always
redis:
image: redis:alpine
ports:
- "6379:6379"
volumes:
- "./proxy/cache_data:/data"
depends_on:
- proxy
restart: always
#Cassandra Cluster
cassandraSeed:
image: cassandra:latest
ports:
- "9042:9042"
expose:
- 9042
volumes:
- "./warehouse/data/db1:/var/lib/cassandra"
- "./warehouse/cassandra-init.sh:/cassandra-init.sh"
environment:
- "CASSANDRA_SEEDS=cassandraSeed"
- "CASSANDRA_CLUSTER_NAME=Delivery Cluster"
command: "sh /cassandra-init.sh"
restart: always
cassandra1:
image: cassandra:latest
ports:
- "9142:9042"
expose:
- 9042
volumes:
- "./warehouse/data/db2:/var/lib/cassandra"
- "./warehouse/cassandra-init.sh:/cassandra-init.sh"
environment:
- "CASSANDRA_SEEDS=cassandraSeed"
- "CASSANDRA_CLUSTER_NAME=Delivery Cluster"
command: "sh /cassandra-init.sh"
depends_on:
- cassandraSeed
restart: always
cassandra2:
image: cassandra:latest
ports:
- "9242:9042"
expose:
- 9042
volumes:
- "./warehouse/data/db3:/var/lib/cassandra"
- "./warehouse/cassandra-init.sh:/cassandra-init.sh"
environment:
- "CASSANDRA_SEEDS=cassandraSeed"
- "CASSANDRA_CLUSTER_NAME=Delivery Cluster"
command: "sh /cassandra-init.sh"
depends_on:
- cassandraSeed
restart: always