forked from tgrospic/rnode-client-js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
48 lines (43 loc) · 1.43 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
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_BOOT_PRIVATE --allow-private-addresses --host boot
--protocol-port 40400 --discovery-port 40404
--wallets-file /data/genesis/wallets.txt --bonds-file /data/genesis/bonds.txt
--tls-certificate-path /data/node.certificate.pem --tls-key-path /data/node.key.pem
--approve-duration 10seconds --approve-interval 10seconds
ports:
- $MY_NET_IP:40401:40401
- $MY_NET_IP:40402:40402
- $MY_NET_IP:40403:40403
- $MY_NET_IP:40405:40405
# Ports exposed externally
- $MY_NET_IP:40400:40400
- $MY_NET_IP:40404:40404
volumes:
- ./data:/data
read:
<< : *default-rnode
container_name: read
command: run -b $VALIDATOR_BOOT_ADDRESS --allow-private-addresses --host read --no-upnp
--protocol-port 40410 --discovery-port 40414
--approve-duration 10seconds --approve-interval 10seconds
--fork-choice-check-if-stale-interval 30seconds --fork-choice-stale-threshold 30seconds
ports:
- $MY_NET_IP:40411:40401
- $MY_NET_IP:40413:40403
- $MY_NET_IP:40415:40405
# Ports exposed externally
- $MY_NET_IP:40410:40410
- $MY_NET_IP:40414:40414
networks:
rchain-net: