-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (84 loc) · 1.64 KB
/
Copy pathdocker-compose.yml
File metadata and controls
87 lines (84 loc) · 1.64 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
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
services:
node1:
build: .
image: streamhive:local
command:
- -listen
- 0.0.0.0:7070
- -health
- 0.0.0.0:8080
- -replicate
- -store-dir
- /data
- -peers
- node2:7070,node3:7070
- -peer-reconnect
- -peer-reconnect-min
- 200ms
- -peer-reconnect-max
- 2s
- -sync-interval
- 1s
ports:
- "18081:8080"
volumes:
- ${STREAMHIVE_DATA_DIR:-./.streamhive-compose}/node1:/data
node2:
image: streamhive:local
command:
- -listen
- 0.0.0.0:7070
- -health
- 0.0.0.0:8080
- -replicate
- -store-dir
- /data
- -peers
- node1:7070,node3:7070
- -peer-reconnect
- -peer-reconnect-min
- 200ms
- -peer-reconnect-max
- 2s
- -sync-interval
- 1s
ports:
- "18082:8080"
volumes:
- ${STREAMHIVE_DATA_DIR:-./.streamhive-compose}/node2:/data
node3:
image: streamhive:local
command:
- -listen
- 0.0.0.0:7070
- -health
- 0.0.0.0:8080
- -replicate
- -store-dir
- /data
- -peers
- node1:7070,node2:7070
- -peer-reconnect
- -peer-reconnect-min
- 200ms
- -peer-reconnect-max
- 2s
- -sync-interval
- 1s
ports:
- "18083:8080"
volumes:
- ${STREAMHIVE_DATA_DIR:-./.streamhive-compose}/node3:/data
seed:
image: streamhive:local
command:
- -listen
- 127.0.0.1:0
- -dial
- node1:7070
- -put-content-key
- -put-data
- hello from compose
- -exit-after-put
profiles:
- tools