forked from tgrospic/rnode-client-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (51 loc) · 1.56 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
version: '2.3'
x-rnode:
&default-rnode
image: $RNODE_IMAGE
user: root
restart: always
networks:
- rchain-net
services:
boot:
<< : *default-rnode
container_name: boot
command: run -s --validator-private-key $VALIDATOR_PRIVATE_BOOT --allow-private-addresses --host boot -p 40400 -n --synchrony-constraint-threshold 0
--wallets-file /data/genesis/wallets.txt --bonds-file /data/genesis/bonds.txt
--certificate /data/node.certificate.pem --key /data/node.key.pem
--duration '10 seconds' --interval '10 seconds'
ports:
- $MY_NET_IP:40400:40400
- $MY_NET_IP:40401:40401
- $MY_NET_IP:40402:40402
- $MY_NET_IP:40403:40403
- $MY_NET_IP:40404:40404
volumes:
- ./data:/data
read:
<< : *default-rnode
container_name: read
command: run -b $BOOTSTRAP --allow-private-addresses --host read -p 50400 -n
--duration '10 seconds' --interval '10 seconds'
--fork-choice-check-if-stale-interval '30 seconds' --fork-choice-stale-threshold '30 seconds'
ports:
- $MY_NET_IP:50400:50400
- $MY_NET_IP:50401:40401
- $MY_NET_IP:50402:40402
- $MY_NET_IP:50403:40403
- $MY_NET_IP:50404:40404
envoy:
container_name: envoy
image: envoyproxy/envoy:latest
restart: always
command: -c /etc/envoy/envoy.yaml -l trace
volumes:
# Envoy configuration
- ./envoy.yaml:/etc/envoy/envoy.yaml
ports:
- $MY_NET_IP:44401:44401
- $MY_NET_IP:54401:54401
- $MY_NET_IP:9901:9901
network_mode: host
networks:
rchain-net: