Sign inSign up

neuraiproject/node-testnet_rpc-proxy_explorer-rpc:1.0.0

Manifest digest

sha256:2d611d78956247b52ccafd016965f692e7b0b399d12238d107b5e3deb517ad2a

Last pushed

5 months by neuraiproject

Type

Compose

Manifest digest

sha256:2d611d78956247b52ccafd016965f692e7b0b399d12238d107b5e3deb517ad2a

Compose file content

services:
  neuraid:
    build:
      context: ./node
      dockerfile: Dockerfile
      args:
        BRANCH: DePIN-Test
    image: neuraiproject/node-testnet_rpc-proxy_explorer-rpc:1.0.0-node
    container_name: neurai-testnet-node
    restart: unless-stopped

    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "5"

    environment:
      # ── Network ──────────────────────────────────────────────────────────
      NEURAI_TESTNET: "1"
      # NEURAI_LISTEN: 1 to accept inbound P2P connections
      NEURAI_LISTEN: "0"
      NEURAI_REST: "1"

      # ── RPC ──────────────────────────────────────────────────────────────
      NEURAI_RPC_USER: "neurai"
      NEURAI_RPC_PASSWORD: "changeme"
      # NEURAI_RPC_ALLOW_IP: restrict in production (e.g. 127.0.0.1/32)
      NEURAI_RPC_ALLOW_IP: "0.0.0.0/0"
      NEURAI_RPC_PORT: "19101"
      NEURAI_RPC_TIMEOUT: "240"
      NEURAI_RPC_WORKQUEUE: "64"
      NEURAI_RPC_THREADS: "8"

      # ── Wallet ───────────────────────────────────────────────────────────
      # NEURAI_DISABLE_WALLET: 1=disabled | 0=enabled
      NEURAI_DISABLE_WALLET: "1"

      # ── Indexes ──────────────────────────────────────────────────────────
      NEURAI_TXINDEX: "1"
      NEURAI_ASSETINDEX: "1"
      NEURAI_ADDRESSINDEX: "1"
      NEURAI_TIMESTAMPINDEX: "1"
      NEURAI_SPENTINDEX: "1"
      NEURAI_PUBKEYINDEX: "1"

      # ── Data ─────────────────────────────────────────────────────────────
      NEURAI_DATADIR: "/data"

    volumes:
      - neurai_data:/data

    ports:
      - "19100:19100"   # testnet P2P
      - "19101:19101"   # testnet RPC

    networks:
      - neurai_net

    healthcheck:
      test: ["CMD", "neurai-cli", "-datadir=/data", "getblockchaininfo"]
      interval: 60s
      timeout: 10s
      retries: 3
      start_period: 60s

  rpc-proxy:
    build:
      context: ./rpc-proxy
      dockerfile: Dockerfile
      args:
        REPO_URL: https://github.com/NeuraiProject/neurai-rpc-proxy.git
        REPO_REF: master
    image: neuraiproject/node-testnet_rpc-proxy_explorer-rpc:1.0.0-rpc-proxy
    container_name: neurai-testnet-rpc-proxy
    restart: unless-stopped

    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "5"

    environment:
      PROXY_CONCURRENCY: "4"
      PROXY_ENVIRONMENT: "Neurai Testnet"
      PROXY_ENDPOINT: "http://rpc-proxy:19999/rpc"
      PROXY_LOCAL_PORT: "19999"
      NEURAI_NODE_NAME: "neuraid-testnet"
      NEURAI_NODE_URL: "http://neuraid:19101"
      NEURAI_RPC_USER: "neurai"
      NEURAI_RPC_PASSWORD: "changeme"
      NEURAI_DEPIN_ENABLED: "false"

    expose:
      - "19999"

    ports:
      - "127.0.0.1:19999:19999"

    networks:
      - neurai_net

    depends_on:
      neuraid:
        condition: service_healthy

  explorer:
    build:
      context: ./explorer-rpc
      dockerfile: Dockerfile
      args:
        REPO_URL: https://github.com/NeuraiProject/rebel-xna-explorer.git
        REPO_REF: master
    image: neuraiproject/node-testnet_rpc-proxy_explorer-rpc:1.0.0-explorer
    container_name: neurai-testnet-explorer
    restart: unless-stopped

    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "5"

    environment:
      EXPLORER_BASE_CURRENCY: "XNA"
      EXPLORER_RAVEN_URL: "http://rpc-proxy:19999/rpc"
      EXPLORER_RAVEN_USERNAME: "anonymous"
      EXPLORER_RAVEN_PASSWORD: "anonymous"
      EXPLORER_HTTP_PORT: "8888"
      EXPLORER_HEADLINE: "Neurai Testnet"
      EXPLORER_THEME: "dark"
      EXPLORER_IPFS_GATEWAY: "https://gateway.pinata.cloud/ipfs/"

    expose:
      - "8888"

    ports:
      - "127.0.0.1:8888:8888"

    networks:
      - neurai_net

    depends_on:
      - rpc-proxy

volumes:
  neurai_data:
    driver: local

networks:
  neurai_net:
    driver: bridge

Docker commands

docker compose -f oci://neuraiproject/node-testnet_rpc-proxy_explorer-rpc:1.0.0 up

Use the above command to pull and run the Compose file. Learn more.

Images used

Compose + 1 more


Pulls

326

Stars

0

Last Updated

5 months