docker-compose.beta.sample.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. services:
  2. price-pusher:
  3. # Use this to build the price pusher from source. A dependency of the pusher docker
  4. # image is the pyth-crosschain monorepo lerna docker image. Build lerna image
  5. # using the following command from the repo root:
  6. # `docker buildx build -f Dockerfile.lerna -t lerna .`
  7. #
  8. # Please note that the docker build from source only works in x86_64 platforms
  9. # and doesn't work on arm platforms (like Apple M1/M2).
  10. #
  11. # build:
  12. # context: .
  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. - "--"
  19. - "evm"
  20. - "--endpoint"
  21. # Replace this with RPC endpoint URL for the EVM network.
  22. - "https://endpoints.omniatech.io/v1/fantom/testnet/public"
  23. - "--mnemonic-file"
  24. - "/mnemonic"
  25. - "--pyth-contract-address"
  26. # Replace this with the address of the Pyth contract on the EVM network.
  27. - "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C"
  28. - "--price-service-endpoint"
  29. - "https://hermes-beta.pyth.network" # Replace this with a private Hermes RPC for more reliability
  30. - "--price-config-file"
  31. - "/price_config"
  32. configs:
  33. - mnemonic
  34. - price_config
  35. configs:
  36. mnemonic:
  37. file: ./mnemonic # Replace this with the path to the mnemonic file
  38. price_config:
  39. file: ./price-config.beta.sample.yaml # Replace this with the path to the price configuration file