LogoLogo
WebsiteDIA AppRequest integration
  • DIA Oracles Overview
  • Intro to Lumina
    • How it works
    • Integrated chains
  • Data products & Tools
    • Token price feeds
  • Oracle Builder (Beta)
  • How-to guides
    • Fetch price data
      • Push based oracles
      • Pull based oracles
      • Contract Addresses
    • Run a Feeder
      • Hardware specs
      • Setting up the node
        • Docker compose
        • Docker run
        • Kubernetes
    • Stake DIA
    • Request a custom oracle
  • Reference
    • Architecture
      • Data sourcing
      • Data computation
      • Data delivery
    • Cross-chain Messaging
  • Resources
    • Audits
    • Chain information
    • Nexus Documentation
    • Community & Support
    • T&C
      • Licence Agreement
      • Contributor Covenant Code of Conduct
      • Disclaimer
Powered by GitBook
On this page
  1. How-to guides
  2. Run a Feeder
  3. Setting up the node

Docker run

PreviousDocker composeNextKubernetes

Last updated 1 month ago

  1. Using the same , run the feeder with DEPLOYED_CONTRACT initially empty:

docker run -d \
  -e NODE_OPERATOR_NAME= \
  -e PRIVATE_KEY= \
  -e CHAIN_ID= \
  -e DEPLOYED_CONTRACT= \
  -e PUSHGATEWAY_URL= \
  -e PUSHGATEWAY_USER= \
  -e PUSHGATEWAY_PASSWORD= \
  --name decentralized-feeder \
  diadata/decentralized-feeder:<VERSION>
  1. Retrieve the logs to get the deployed contract address. See the expected logs .

docker logs <container_name>
  1. Stop the container, update the DEPLOYED_CONTRACT value, and restart:

docker stop <container_name>

docker run -d \
  -e NODE_OPERATOR_NAME= \
  -e PRIVATE_KEY= \
  -e CHAIN_ID= \
  -e DEPLOYED_CONTRACT= \
  -e PUSHGATEWAY_USER= \
  -e PUSHGATEWAY_PASSWORD= \
  -e EXCHANGEPAIRS= \ 
  --name decentralized-feeder \
  diadata/decentralized-feeder:<VERSION>
  1. Retrieve the logs to verify the container is running as expected

docker logs <container_name>

For additional environment variable configurations, refer to and .

Adding Exchange Pairs
Watchdog environment variables
ENV variables
here