Skip to content

Commit 3a556b6

Browse files
authored
Expose ports required by recall-cli (#33)
This PR adds a configuration option to expose ports required by recall CLI.
1 parent 7e3bba5 commit 3a556b6

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

config/node-default.env

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,5 @@ http_external_network=
6868
# Useful for testing.
6969
external_default_network=
7070

71-
ethapi_bind_address=
71+
# Expose services required by recall CLI on the specified host
72+
localhost_cli_bind_host=

config/snippets/ethapi-port-mapping.yml

-4
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
services:
2+
cometbft:
3+
ports:
4+
- $localhost_cli_bind_host:26657:26657
5+
6+
ethapi:
7+
ports:
8+
- $localhost_cli_bind_host:8645:8545
9+
10+
objects:
11+
ports:
12+
- $localhost_cli_bind_host:8001:8001

run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function set_compose_files {
1919
[ "$enable_recall_s3" == "true" ] && COMPOSE_FILE="$COMPOSE_FILE:./config/snippets/http-network-recall-s3.yml"
2020
fi
2121
[ ! -z "$external_default_network" ] && COMPOSE_FILE="$COMPOSE_FILE:./config/snippets/external-default-network.yml"
22-
[ ! -z "$ethapi_bind_address" ] && COMPOSE_FILE="$COMPOSE_FILE:./config/snippets/ethapi-port-mapping.yml"
22+
[ ! -z "$localhost_cli_bind_host" ] && COMPOSE_FILE="$COMPOSE_FILE:./config/snippets/localnet-cli-port-mapping.yml"
2323
[ ! -z "$host_bind_ip" ] && COMPOSE_FILE="$COMPOSE_FILE:./config/snippets/port-mapping.yml"
2424
export COMPOSE_FILE
2525
}

0 commit comments

Comments
 (0)