mirror of
https://github.com/farcasterxyz/hub-monorepo.git
synced 2026-01-14 23:58:10 -05:00
77 lines
1.7 KiB
YAML
77 lines
1.7 KiB
YAML
# To start two peered hubs locally, run:
|
|
#
|
|
# `docker compose -f docker-compose-multinode.yml run yarn --cwd=apps/hubble identity create -N 2`
|
|
#
|
|
# Set $TEST_HUB1_ID and $TEST_HUB2_ID in your .env file to the paths generated by the previous command. Then run:
|
|
#
|
|
# `docker compose -f docker-compose-multinode.yml up`
|
|
#
|
|
# This is useful when testing protocol changes locally.
|
|
|
|
version: '3.9'
|
|
|
|
services:
|
|
hubble1:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.hubble
|
|
ports:
|
|
- '2282:2282'
|
|
- '2283:2283'
|
|
command:
|
|
[
|
|
"node",
|
|
"build/cli.js",
|
|
"start",
|
|
"--gossip-port",
|
|
"2282",
|
|
"--rpc-port",
|
|
"2283",
|
|
"--eth-mainnet-rpc-url",
|
|
"$ETH_MAINNET_RPC_URL",
|
|
"--network",
|
|
"3",
|
|
"--db-name",
|
|
"hubble1",
|
|
"--process-file-prefix",
|
|
"hubble1",
|
|
"--id",
|
|
"$TEST_HUB1_ID",
|
|
"--gossip-metrics-enabled"
|
|
]
|
|
volumes:
|
|
- ./apps/hubble/.hub:/home/node/app/apps/hubble/.hub
|
|
- ./apps/hubble/.rocks:/home/node/app/apps/hubble/.rocks
|
|
hubble2:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.hubble
|
|
ports:
|
|
- '2284:2284'
|
|
- '2285:2285'
|
|
command:
|
|
[
|
|
"node",
|
|
"build/cli.js",
|
|
"start",
|
|
"--gossip-port",
|
|
"2284",
|
|
"--rpc-port",
|
|
"2285",
|
|
"--eth-mainnet-rpc-url",
|
|
"$ETH_MAINNET_RPC_URL",
|
|
"--network",
|
|
"3",
|
|
"-b",
|
|
"/dns/hubble1/tcp/2282",
|
|
"--db-name",
|
|
"hubble2",
|
|
"--process-file-prefix",
|
|
"hubble2",
|
|
"--id",
|
|
"$TEST_HUB2_ID"
|
|
]
|
|
volumes:
|
|
- ./apps/hubble/.hub:/home/node/app/apps/hubble/.hub
|
|
- ./apps/hubble/.rocks:/home/node/app/apps/hubble/.rocks
|