# Compose file for quickly spinning up a local instance of the Rialto Substrate network. # # Note that the Rialto network is only used for testing, so the configuration settings you see here # are *not* recommended for a production environment. # # For example, do *not* keep your `node-key` in version control, and unless you're _really_ sure you # want to provide public access to your nodes do *not* publicly expose RPC methods. version: '3.5' services: rialto-node-alice: &rialto-bridge-node image: paritytech/rialto-bridge-node entrypoint: - /home/user/rialto-bridge-node - --execution=Native - --chain=local - --bootnodes=/dns4/rialto-node-bob/tcp/30333/p2p/12D3KooWSEpHJj29HEzgPFcRYVc5X3sEuP3KgiUoqJNCet51NiMX - --alice - --node-key=79cf382988364291a7968ae7825c01f68c50d679796a8983237d07fe0ccf363b - --rpc-cors=all - --enable-offchain-indexing=true - --unsafe-rpc-external - --unsafe-ws-external environment: RUST_LOG: runtime=trace,rpc=debug,txpool=trace,runtime::bridge=trace,beefy=debug ports: - "9933:9933" - "9944:9944" rialto-node-bob: <<: *rialto-bridge-node entrypoint: - /home/user/rialto-bridge-node - --execution=Native - --chain=local - --bootnodes=/dns4/rialto-node-alice/tcp/30333/p2p/12D3KooWMF6JvV319a7kJn5pqkKbhR3fcM2cvK5vCbYZHeQhYzFE - --bob - --node-key=4f9d0146dd9b7b3bf5a8089e3880023d1df92057f89e96e07bb4d8c2ead75bbd - --rpc-cors=all - --enable-offchain-indexing=true - --unsafe-rpc-external - --unsafe-ws-external ports: - "10033:9933" - "10044:9944" rialto-node-charlie: <<: *rialto-bridge-node entrypoint: - /home/user/rialto-bridge-node - --execution=Native - --chain=local - --bootnodes=/dns4/rialto-node-alice/tcp/30333/p2p/12D3KooWMF6JvV319a7kJn5pqkKbhR3fcM2cvK5vCbYZHeQhYzFE - --charlie - --rpc-cors=all - --enable-offchain-indexing=true - --unsafe-rpc-external - --unsafe-ws-external - --prometheus-external ports: - "10133:9933" - "10144:9944" - "10615:9615" rialto-node-dave: <<: *rialto-bridge-node entrypoint: - /home/user/rialto-bridge-node - --execution=Native - --chain=local - --bootnodes=/dns4/rialto-node-alice/tcp/30333/p2p/12D3KooWMF6JvV319a7kJn5pqkKbhR3fcM2cvK5vCbYZHeQhYzFE - --dave - --rpc-cors=all - --enable-offchain-indexing=true - --unsafe-rpc-external - --unsafe-ws-external ports: - "10233:9933" - "10244:9944" rialto-node-eve: <<: *rialto-bridge-node entrypoint: - /home/user/rialto-bridge-node - --execution=Native - --chain=local - --bootnodes=/dns4/rialto-node-alice/tcp/30333/p2p/12D3KooWMF6JvV319a7kJn5pqkKbhR3fcM2cvK5vCbYZHeQhYzFE - --eve - --rpc-cors=all - --enable-offchain-indexing=true - --unsafe-rpc-external - --unsafe-ws-external ports: - "10333:9933" - "10344:9944" rialto-chainspec-exporter: image: paritytech/rialto-bridge-node entrypoint: /entrypoints/rialto-chainspec-exporter-entrypoint.sh volumes: - ./networks/entrypoints:/entrypoints - rialto-share:/rialto-share:z # Note: These are being overridden from the top level `monitoring` compose file. prometheus-metrics: volumes: - ./networks/dashboard/prometheus/rialto-targets.yml:/etc/prometheus/targets-rialto-nodes.yml depends_on: - rialto-node-charlie # we're using `/rialto-share` to expose Rialto chain spec to those who are interested. Right # now it is Rialto Parachain collator nodes. Local + tmpfs combination allows sharing writable # in-memory volumes, which are dropped when containers are stopped. volumes: rialto-share: driver: local driver_opts: type: "tmpfs" device: "tmpfs"