Skip to content

Commit

Permalink
chore: expose relay and relay-ws in docker-compose-state-migration.yml (
Browse files Browse the repository at this point in the history
#625)

Signed-off-by: nikolay <[email protected]>
  • Loading branch information
natanasow authored May 27, 2024
1 parent 97946ec commit ea93442
Showing 1 changed file with 99 additions and 0 deletions.
99 changes: 99 additions & 0 deletions docker-compose-state-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,105 @@ services:
volumes:
- "${MIRROR_NODE_CONFIG_PATH}/compose-network/mirror-node/application.yml:/usr/etc/hedera-mirror-monitor/application.yml"

relay:
image: "${RELAY_IMAGE_PREFIX}hedera-json-rpc-relay:${RELAY_IMAGE_TAG}"
container_name: json-rpc-relay
mem_swappiness: 0
mem_limit: "${RELAY_MEM_LIMIT}"
memswap_limit: "${RELAY_MEM_LIMIT}"
depends_on:
network-node:
condition: service_healthy
networks:
- mirror-node
- network-node-bridge
environment:
HEDERA_NETWORK: "${RELAY_HEDERA_NETWORK}"
OPERATOR_ID_MAIN: "${RELAY_OPERATOR_ID_MAIN}"
OPERATOR_KEY_MAIN: "${RELAY_OPERATOR_KEY_MAIN}"
CHAIN_ID: "${RELAY_CHAIN_ID}"
MIRROR_NODE_URL: "${RELAY_MIRROR_NODE_URL}"
MIRROR_NODE_URL_WEB3: "${RELAY_MIRROR_NODE_URL_WEB3}"
MIRROR_NODE_RETRIES: "${RELAY_MIRROR_NODE_RETRIES}"
MIRROR_NODE_RETRY_DELAY: "${RELAY_MIRROR_NODE_RETRY_DELAY}"
LOCAL_NODE: "${RELAY_LOCAL_NODE}"
SERVER_PORT: "${RELAY_SERVER_PORT}"
E2E_RELAY_HOST: "${RELAY_E2E_HOST}"
FEE_HISTORY_MAX_RESULTS: "${RELAY_FEE_HISTORY_MAX_RESULTS}"
DEFAULT_RATE_LIMIT: "${RELAY_DEFAULT_RATE_LIMIT}"
TIER_1_RATE_LIMIT: "${RELAY_TIER_1_RATE_LIMIT}"
TIER_2_RATE_LIMIT: "${RELAY_TIER_2_RATE_LIMIT}"
TIER_3_RATE_LIMIT: "${RELAY_TIER_3_RATE_LIMIT}"
ETH_CALL_DEFAULT_TO_CONSENSUS_NODE: "${RELAY_ETH_CALL_DEFAULT_TO_CONSENSUS_NODE}"
LIMIT_DURATION: "${RELAY_LIMIT_DURATION}"
HBAR_RATE_LIMIT_TINYBAR: "${RELAY_HBAR_RATE_LIMIT_TINYBAR}"
HBAR_RATE_LIMIT_DURATION: "${RELAY_HBAR_RATE_LIMIT_DURATION}"
ETH_GET_LOGS_BLOCK_RANGE_LIMIT: "${RELAY_ETH_GET_LOGS_BLOCK_RANGE_LIMIT}"
DEV_MODE: "${RELAY_DEV_MODE}"
INPUT_SIZE_LIMIT: "${RELAY_INPUT_SIZE_LIMIT}"
RATE_LIMIT_DISABLED: "${RELAY_RATE_LIMIT_DISABLED}"
ETH_POPULATE_SYNTHETIC_CONTRACT_RESULTS: "${RELAY_ETH_POPULATE_SYNTHETIC_CONTRACT_RESULTS}"
REDIS_ENABLED: "${RELAY_REDIS_ENABLED}"
REDIS_URL: "${RELAY_REDIS_URL}"
MIRROR_NODE_GET_CONTRACT_RESULTS_RETRIES: "${RELAY_MIRROR_NODE_GET_CONTRACT_RESULTS_RETRIES}"
ports:
- "7546:7546"
restart: unless-stopped
tty: false

relay-ws:
image: "${RELAY_IMAGE_PREFIX}hedera-json-rpc-relay:${RELAY_IMAGE_TAG}"
container_name: json-rpc-relay-ws
mem_swappiness: 0
mem_limit: "${RELAY_MEM_LIMIT}"
memswap_limit: "${RELAY_MEM_LIMIT}"
depends_on:
network-node:
condition: service_healthy
networks:
- mirror-node
- network-node-bridge
environment:
HEDERA_NETWORK: "${RELAY_HEDERA_NETWORK}"
OPERATOR_ID_MAIN: "${RELAY_OPERATOR_ID_MAIN}"
OPERATOR_KEY_MAIN: "${RELAY_OPERATOR_KEY_MAIN}"
CHAIN_ID: "${RELAY_CHAIN_ID}"
MIRROR_NODE_URL: "${RELAY_MIRROR_NODE_URL}"
MIRROR_NODE_RETRIES: "${RELAY_MIRROR_NODE_RETRIES}"
MIRROR_NODE_RETRY_DELAY: "${RELAY_MIRROR_NODE_RETRY_DELAY}"
LOCAL_NODE: "${RELAY_LOCAL_NODE}"
SERVER_PORT: "${RELAY_SERVER_PORT}"
E2E_RELAY_HOST: "${RELAY_E2E_HOST}"
FEE_HISTORY_MAX_RESULTS: "${RELAY_FEE_HISTORY_MAX_RESULTS}"
DEFAULT_RATE_LIMIT: "${RELAY_DEFAULT_RATE_LIMIT}"
TIER_1_RATE_LIMIT: "${RELAY_TIER_1_RATE_LIMIT}"
TIER_2_RATE_LIMIT: "${RELAY_TIER_2_RATE_LIMIT}"
TIER_3_RATE_LIMIT: "${RELAY_TIER_3_RATE_LIMIT}"
ETH_CALL_DEFAULT_TO_CONSENSUS_NODE: "${RELAY_ETH_CALL_DEFAULT_TO_CONSENSUS_NODE}"
LIMIT_DURATION: "${RELAY_LIMIT_DURATION}"
HBAR_RATE_LIMIT_TINYBAR: "${RELAY_HBAR_RATE_LIMIT_TINYBAR}"
HBAR_RATE_LIMIT_DURATION: "${RELAY_HBAR_RATE_LIMIT_DURATION}"
ETH_GET_LOGS_BLOCK_RANGE_LIMIT: "${RELAY_ETH_GET_LOGS_BLOCK_RANGE_LIMIT}"
DEV_MODE: "${RELAY_DEV_MODE}"
INPUT_SIZE_LIMIT: "${RELAY_INPUT_SIZE_LIMIT}"
RATE_LIMIT_DISABLED: "${RELAY_RATE_LIMIT_DISABLED}"
SUBSCRIPTIONS_ENABLED: true
HEALTHCHECK_PORT: 8547
ETH_POPULATE_SYNTHETIC_CONTRACT_RESULTS: "${RELAY_ETH_POPULATE_SYNTHETIC_CONTRACT_RESULTS}"
REDIS_ENABLED: "${RELAY_REDIS_ENABLED}"
REDIS_URL: "${RELAY_REDIS_URL}"
WS_CONNECTION_LIMIT_PER_IP: "${RELAY_WS_CONNECTION_LIMIT_PER_IP}"
WS_CONNECTION_LIMIT: "${RELAY_WS_CONNECTION_LIMIT}"
WS_MAX_INACTIVITY_TTL: "${RELAY_WS_MAX_INACTIVITY_TTL}"
WS_MULTIPLE_ADDRESSES_ENABLED: "${RELAY_WS_MULTIPLE_ADDRESSES_ENABLED}"
WS_SUBSCRIPTION_LIMIT: "${RELAY_WS_SUBSCRIPTION_LIMIT}"
ports:
- "8546:8546"
- "8547:8547"
restart: unless-stopped
tty: false
command: ["start:ws"]

networks:
network-node-bridge:
name: network-node-bridge
Expand Down

0 comments on commit ea93442

Please sign in to comment.