-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
98 lines (98 loc) · 2.37 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: "3.8"
services:
agent-ha-0: # seed
image: ghcr.io/h0n9/kistio-agent
build:
context: ./agent
environment:
- LISTENS=/ip4/0.0.0.0/udp/7780/quic
- SEED=test-0
- ENABLE_DHT_SERVER=true
networks:
agent-net:
agent-ha-1:
depends_on:
- agent-ha-0
image: ghcr.io/h0n9/kistio-agent
build:
context: ./agent
environment:
- LISTENS=/ip4/0.0.0.0/udp/7780/quic
- BOOTSTRAPS=/dns4/agent-ha-0/udp/7780/quic/p2p/QmbXyJsL3wnWa864f3GLv8bno2KhC6kRA2d3akVETLEfPo
- SEED=test-1
- ENABLE_DHT_SERVER=true
networks:
agent-net:
agent-ha-2:
depends_on:
- agent-ha-0
image: ghcr.io/h0n9/kistio-agent
build:
context: ./agent
environment:
- LISTENS=/ip4/0.0.0.0/udp/7780/quic
- BOOTSTRAPS=/dns4/agent-ha-0/udp/7780/quic/p2p/QmbXyJsL3wnWa864f3GLv8bno2KhC6kRA2d3akVETLEfPo
- SEED=test-2
- ENABLE_DHT_SERVER=true
networks:
agent-net:
agent-0:
depends_on:
- agent-ha-0
image: ghcr.io/h0n9/kistio-agent
build:
context: ./agent
environment:
- LISTENS=/ip4/0.0.0.0/udp/7780/quic
- BOOTSTRAPS=/dns4/agent-ha-0/udp/7780/quic/p2p/QmbXyJsL3wnWa864f3GLv8bno2KhC6kRA2d3akVETLEfPo
- GRPC_LISTEN=0.0.0.0:7788
- ENABLE_DHT_SERVER=true
networks:
agent-net:
client-0:
depends_on:
- agent-0
image: ghcr.io/h0n9/sample-client
build:
context: ./sample-client
environment:
- AGENT_HOST=agent-0
- AGENT_PORT=7788
- TOPIC_PUB=balance
- TOPIC_SUB=account
- INTERVAL=1000
networks:
agent-net:
agent-1:
depends_on:
- agent-ha-0
image: ghcr.io/h0n9/kistio-agent
build:
context: ./agent
environment:
- LISTENS=/ip4/0.0.0.0/udp/7780/quic
- BOOTSTRAPS=/dns4/agent-ha-0/udp/7780/quic/p2p/QmbXyJsL3wnWa864f3GLv8bno2KhC6kRA2d3akVETLEfPo
- GRPC_LISTEN=0.0.0.0:7788
- ENABLE_DHT_SERVER=true
networks:
agent-net:
client-1:
depends_on:
- agent-1
image: ghcr.io/h0n9/sample-client
build:
context: ./sample-client
environment:
- AGENT_HOST=agent-1
- AGENT_PORT=7788
- TOPIC_PUB=account
- TOPIC_SUB=balance
- INTERVAL=1000
networks:
agent-net:
networks:
agent-net:
ipam:
driver: default
config:
- subnet: 172.19.0.0/16