-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (52 loc) · 1.3 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
version: '3'
services:
# p2p audit node
# monitors all traffic in p2p
node_audit:
build:
context: .
dockerfile: Dockerfile
command: ./audit-node
environment:
- RUST_BACKTRACE=1
networks:
testing_net:
ipv4_address: 172.28.1.1
ports:
- "80:80"
# global bootstrap node
node_0:
build:
context: .
dockerfile: Dockerfile
command: ./episub-node --topic t0 --audit 172.28.1.1:9000 -v --size 100 --sender
environment:
- RUST_BACKTRACE=1
depends_on:
node_audit: # wait for audit node to start
condition: service_started
networks:
testing_net:
ipv4_address: 172.28.1.2
# peer node
# when running use --scale node_n=N, where N is between 1-1000
node_n:
build:
context: .
dockerfile: Dockerfile
command: ./episub-node --bootstrap /ip4/172.28.1.2/tcp/4001 --audit 172.28.1.1:9000 --topic t0 -v --size 100
environment:
- RUST_BACKTRACE=1
depends_on:
node_audit: # wait for audit node to start
condition: service_started
node_0: # wait for bootstrap node to start
condition: service_started
networks:
testing_net:
networks:
testing_net:
ipam:
driver: default
config:
- subnet: 172.28.0.0/16