-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
65 lines (65 loc) · 1.48 KB
/
docker-compose.yaml
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
version: "3"
services:
nats-streaming-1:
command:
- "-D"
- "-p"
- "4222"
- "-m"
- "8222"
- "-store"
- "file"
- "-dir"
- "datastore"
- "-clustered"
- "-cluster_node_id=node-1"
- "-cluster=nats://0.0.0.0:6222"
- "-cluster_peers=node-1,node-2,node-3"
- "-routes"
- "nats://nats-streaming-1:6222,nats://nats-streaming-2:6222,nats://nats-streaming-3:6222"
expose:
- "6222"
image: "nats-streaming"
ports:
- "14222:4222"
- "8222:8222"
nats-streaming-2:
command:
- "-D"
- "-p"
- "4222"
- "-store"
- "file"
- "-dir"
- "datastore"
- "-clustered"
- "-cluster_node_id=node-2"
- "-cluster_peers=node-1,node-2,node-3"
- "-cluster=nats://0.0.0.0:6222"
- "-routes"
- "nats://nats-streaming-1:6222,nats://nats-streaming-2:6222,nats://nats-streaming-3:6222"
image: "nats-streaming"
expose:
- "6222"
ports:
- "24222:4222"
nats-streaming-3:
command:
- "-D"
- "-p"
- "4222"
- "-store"
- "file"
- "-dir"
- "datastore"
- "-clustered"
- "-cluster_node_id=node-3"
- "-cluster=nats://0.0.0.0:6222"
- "-cluster_peers=node-1,node-2,node-3"
- "-routes"
- "nats://nats-streaming-1:6222,nats://nats-streaming-2:6222,nats://nats-streaming-3:6222"
image: "nats-streaming"
expose:
- "6222"
ports:
- "34222:4222"