Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add two more validators, providing four nodes in a devnet. #383

Closed
wants to merge 8 commits into from
145 changes: 145 additions & 0 deletions dev/docker-scripts/four-nodes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# Docker Compose file for making an Entropy blockchain network.
# Currently, it's intended for LOCAL DEVNET FUNCTIONALITY ONLY.
# Things will get better and more generic, but for the moment
# this iteration is for simplifying the dogfooding and testing
# workflows our engineers use, and trying to cut down on some
# of the more complicated test code that spins up this kind of
# environment for their tests. Eventually, we will converge on
# a more canonical set of environments and configuration files.
---
name: entropy-devnet-local-4-nodes

services:
alice-tss-server:
# This pulls from Docker Hub, so you can replace the image tag name
# (the string after the `:` in the `image` key) with whatever tag
# name you'd like to use. Each Docker image is built from a specific
# commit in the `entropy-core` repository. Refer to the wiki page at
# https://github.com/entropyxyz/meta/wiki/Git#conventions for details
# about how Git tags, branches, and commits refer to image tags here.
image: entropyxyz/entropy-tss:${ENTROPY_CORE_VERSION:-latest}
ports:
- "127.0.0.1:3001:3001/tcp"
command:
- "--alice"
- "--threshold-url"
- "0.0.0.0:3001"
- "--chain-endpoint"
- "ws://alice-chain-node:9944"
- '--no-sync'

alice-chain-node:
image: entropyxyz/entropy:${ENTROPY_CORE_VERSION:-latest}
ports:
- "127.0.0.1:9944:9944/tcp"
command:
- "--chain"
- "devnet-local"
mixmix marked this conversation as resolved.
Show resolved Hide resolved
- "--alice"
- "--base-path"
- ".entropy/alice"
- "--rpc-port"
- "9944"
- "--rpc-cors"
- "all"
- "--unsafe-rpc-external" # Intentional, for TSS's access.
- "--node-key=0000000000000000000000000000000000000000000000000000000000000001"
- "--tss-server-endpoint"
- "http://alice-tss-server:3001"

bob-tss-server:
image: entropyxyz/entropy-tss:${ENTROPY_CORE_VERSION:-latest}
ports:
- "127.0.0.1:3002:3002/tcp"
command:
- "--bob"
- "--threshold-url"
- "0.0.0.0:3002"
- "--chain-endpoint"
- "ws://bob-chain-node:9944"
- '--no-sync'

# "Bob's chain node."
bob-chain-node:
image: entropyxyz/entropy:${ENTROPY_CORE_VERSION:-latest}
ports:
- "127.0.0.1:9945:9944/tcp"
command:
- "--chain"
- "devnet-local"
mixmix marked this conversation as resolved.
Show resolved Hide resolved
- "--bob"
- "--base-path"
- ".entropy/bob"
- "--rpc-port"
- "9944"
- "--rpc-cors"
- "all"
- "--unsafe-rpc-external" # Intentional, for TSS's access.
- "--bootnodes"
- "/dns4/alice-chain-node/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp"
- "--tss-server-endpoint"
- "http://bob-tss-server:3002"

dave-tss-server:
image: entropyxyz/entropy-tss:${ENTROPY_CORE_VERSION:-latest}
ports:
- "127.0.0.1:3003:3003/tcp"
command:
- "--dave"
- "--threshold-url"
- "0.0.0.0:3003"
- "--chain-endpoint"
- "ws://dave-chain-node:9944"
- '--no-sync'

dave-chain-node:
image: entropyxyz/entropy:${ENTROPY_CORE_VERSION:-latest}
ports:
- "127.0.0.1:9946:9944/tcp"
command:
- "--chain"
- "devnet-local"
mixmix marked this conversation as resolved.
Show resolved Hide resolved
- "--dave"
- "--base-path"
- ".entropy/dave"
- "--rpc-port"
- "9944"
- "--rpc-cors"
- "all"
- "--unsafe-rpc-external" # Intentional, for TSS's access.
- "--bootnodes"
- "/dns4/alice-chain-node/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp"
- "--tss-server-endpoint"
- "http://dave-tss-server:3003"

eve-tss-server:
image: entropyxyz/entropy-tss:${ENTROPY_CORE_VERSION:-latest}
ports:
- "127.0.0.1:3004:3004/tcp"
command:
- "--dave"
- "--threshold-url"
- "0.0.0.0:3004"
- "--chain-endpoint"
- "ws://eve-chain-node:9944"
- '--no-sync'

eve-chain-node:
image: entropyxyz/entropy:${ENTROPY_CORE_VERSION:-latest}
ports:
- "127.0.0.1:9947:9944/tcp"
command:
- "--chain"
- "devnet-local"
mixmix marked this conversation as resolved.
Show resolved Hide resolved
- "--eve"
- "--base-path"
- ".entropy/eve"
- "--rpc-port"
- "9944"
- "--rpc-cors"
- "all"
- "--unsafe-rpc-external" # Intentional, for TSS's access.
- "--bootnodes"
- "/dns4/alice-chain-node/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp"
- "--tss-server-endpoint"
- "http://eve-tss-server:3004"