docker-compose.stable.sample.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. services:
  2. price-pusher:
  3. # Use this to build the price pusher from source.
  4. #
  5. # Please note that the docker build from source only works in x86_64 platforms
  6. # and doesn't work on arm platforms (like Apple M1/M2).
  7. #
  8. # build:
  9. # context: ../..
  10. # dockerfile: Dockerfile.node
  11. # args:
  12. # package: "@pythnetwork/price-pusher"
  13. # Replace <version> with the latest released image of the price pusher from here:
  14. # https://gallery.ecr.aws/pyth-network/xc-price-pusher
  15. image: public.ecr.aws/pyth-network/xc-price-pusher:v<version>
  16. restart: always
  17. command:
  18. - "npm"
  19. - "run"
  20. - "start"
  21. - "--"
  22. - "evm"
  23. - "--endpoint"
  24. # Replace this with RPC endpoint URL for the EVM network.
  25. - "https://bsc-dataseed2.binance.org"
  26. - "--mnemonic-file"
  27. - "/mnemonic"
  28. # Replace this with the address of the Pyth contract on the EVM network.
  29. - "--pyth-contract-address"
  30. - "0xd7308b14BF4008e7C7196eC35610B1427C5702EA"
  31. - "--price-service-endpoint"
  32. - "https://hermes.pyth.network" # Replace this with a private Hermes RPC for more reliability
  33. - "--price-config-file"
  34. - "/price_config"
  35. configs:
  36. - mnemonic
  37. - price_config
  38. configs:
  39. mnemonic:
  40. file: ./path/to/mnemonic.txt # Replace this with the path to the mnemonic file
  41. price_config:
  42. file: ./price-config.stable.sample.yaml # Replace this with the path to the price configuration file