injective

Injective Docker 노드 가이드

2분 읽기 · docker

list목차(5)

Injective Docker 노드 가이드

Injective 공식 Docker 이미지는 public.ecr.aws/l9h3g6c6/injective-core 로 배포됩니다. Cosmos SDK 기반이므로 운영 방식은 Cosmos Hub/Osmosis와 유사합니다.

docker-compose 예시

services:
  injectived:
    image: public.ecr.aws/l9h3g6c6/injective-core:v1.13.2
    container_name: injectived
    restart: unless-stopped
    ports:
      - "26657:26657"   # Tendermint RPC
      - "26656:26656"   # P2P
      - "1317:1317"     # REST API
      - "9090:9090"     # gRPC
    volumes:
      - ./data:/root/.injectived
    command:
      - injectived
      - start
      - --home=/root/.injectived

초기 설정

docker run --rm -v $(pwd)/data:/root/.injectived \
  public.ecr.aws/l9h3g6c6/injective-core:v1.13.2 \
  injectived init my-injective-node --chain-id injective-1

# Mainnet genesis
curl -sSL https://raw.githubusercontent.com/InjectiveLabs/mainnet-config/master/10001/genesis.json \
  > data/config/genesis.json

# seeds/peers는 InjectiveLabs/mainnet-config 저장소 참고

State Sync (권장)

# data/config/config.toml
[statesync]
enable = true
rpc_servers = "https://injective-rpc.polkachu.com:443,https://injective-rpc.lavenderfive.com:443"
trust_height = 70000000
trust_hash = "<조회 필요>"
trust_period = "168h0m0s"

상태 확인

# 동기화
curl -s http://localhost:26657/status | jq '.result.sync_info'

# Tendermint 프리셋으로 웹 UI Monitoring에서도 조회 가능

참고

injective 다른 챕터