-
-
Save nzpr/fa815b808ba52b991a1eb83c599d057a to your computer and use it in GitHub Desktop.
Run node with docker compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RNODE_DIR=/rchain | |
RNODE_JAVA_CONFIG=-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/lib/rnode/heapdump_OOM.hprof -XX:+ExitOnOutOfMemoryError -XX:ErrorFile=/var/lib/rnode/hs_err.log -Dlogback.configurationFi> | |
#-XX:MaxRAMPercentage=75 -XX:MaxDirectMemorySize=1g | |
#-XX:ActiveProcessorCount=6 | |
# | |
RNODE_RUN_CONFIG=run -c /var/lib/rnode/rnode.conf --network-id llbm-testnet220729 --shard-name llbm-testnet --bootstrap rnode://98605e3b71f32b78ff3d55eaba96ff1e49888226@node0.llbm.testnet.rchain> | |
#--api-max-blocks-limit=3 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.3' | |
x-rnode: | |
&default-rnode | |
image: nuttzipper/rnode:bm | |
user: root | |
######################################################################## | |
services: | |
######################################################################## | |
node0: | |
<< : *default-rnode | |
container_name: node0 | |
ports: | |
- 40400:40400 | |
- 40402:40402 | |
- 40404:40404 | |
volumes: | |
- $RNODE_DIR/node0/rnode/:/var/lib/rnode/ | |
command: | |
$RNODE_JAVA_CONFIG | |
$RNODE_RUN_CONFIG --api-max-blocks-limit=3 | |
--host node0.$DOMAIN --protocol-port 40400 --discovery-port 40404 | |
######################################################################## | |
node1: | |
<< : *default-rnode | |
container_name: node1 | |
ports: | |
- 40410:40410 | |
- 40412:40402 | |
- 40414:40414 | |
volumes: | |
- $RNODE_DIR/node1/rnode/:/var/lib/rnode/ | |
command: | |
$RNODE_JAVA_CONFIG | |
$RNODE_RUN_CONFIG --api-max-blocks-limit=3 | |
--host node1.$DOMAIN --protocol-port 40410 --discovery-port 40414 | |
######################################################################## | |
node2: | |
<< : *default-rnode | |
container_name: node2 | |
ports: | |
- 40420:40420 | |
- 40422:40402 | |
- 40424:40424 | |
volumes: | |
- $RNODE_DIR/node2/rnode/:/var/lib/rnode/ | |
command: | |
$RNODE_JAVA_CONFIG | |
$RNODE_RUN_CONFIG --api-max-blocks-limit=3 | |
--host node2.$DOMAIN --protocol-port 40420 --discovery-port 40424 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment