docker-compose.mainnet.sample.yaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. services:
  2. spy:
  3. # Find latest Guardian images in https://github.com/wormhole-foundation/wormhole/pkgs/container/guardiand
  4. image: ghcr.io/wormhole-foundation/guardiand:v2.17.0
  5. command:
  6. - "spy"
  7. - "--nodeKey"
  8. - "/node.key"
  9. - "--spyRPC"
  10. - "[::]:7072"
  11. - "--bootstrap"
  12. - "/dns4/wormhole-mainnet-v2-bootstrap.certus.one/udp/8999/quic/p2p/12D3KooWQp644DK27fd3d4Km3jr7gHiuJJ5ZGmy8hH4py7fP4FP7"
  13. - "--network"
  14. - "/wormhole/mainnet/2"
  15. - "--logLevel"
  16. - "warn"
  17. price-service:
  18. # Find latest price service images https://gallery.ecr.aws/pyth-network/xc-server
  19. image: public.ecr.aws/pyth-network/xc-server:v3.0.3
  20. environment:
  21. SPY_SERVICE_HOST: "spy:7072"
  22. SPY_SERVICE_FILTERS: |
  23. [
  24. {
  25. "chain_id": 1,
  26. "emitter_address": "6bb14509a612f01fbbc4cffeebd4bbfb492a86df717ebe92eb6df432a3f00a25"
  27. },
  28. {
  29. "chain_id": 26,
  30. "emitter_address": "f8cd23c2ab91237730770bbea08d61005cdda0984348f3f6eecb559638c0bba0"
  31. }
  32. ]
  33. REST_PORT: "4200"
  34. PROM_PORT: "8081"
  35. READINESS_SPY_SYNC_TIME_SECONDS: "20"
  36. READINESS_NUM_LOADED_SYMBOLS: "50"
  37. LOG_LEVEL: warning
  38. WORMHOLE_CLUSTER: mainnet
  39. healthcheck:
  40. test:
  41. [
  42. "CMD",
  43. "wget",
  44. "--no-verbose",
  45. "--tries=1",
  46. "--spider",
  47. "http://localhost:4200/ready",
  48. ]
  49. start_period: 20s
  50. depends_on:
  51. - spy
  52. price-pusher:
  53. build:
  54. context: .
  55. # Uncomment this line (and comment out the above lines) to use a prebuilt image. Replace <version>
  56. # with the latest released image of the price pusher from this repo release page:
  57. # https://github.com/pyth-network/pyth-crosschain/releases
  58. # image: public.ecr.aws/pyth-network/xc-price-pusher:v<version>
  59. restart: always
  60. command:
  61. - "--"
  62. - "evm"
  63. - "--endpoint"
  64. # Replace this with RPC endpoint URL for the EVM network.
  65. - "https://bsc-dataseed2.binance.org"
  66. - "--mnemonic-file"
  67. - "/mnemonic"
  68. - "--pyth-contract-address"
  69. - "0xd7308b14BF4008e7C7196eC35610B1427C5702EA"
  70. - "--price-service-endpoint"
  71. - "http://price-service:4200"
  72. - "--price-config-file"
  73. - "/price_config"
  74. configs:
  75. - mnemonic
  76. - price_config
  77. depends_on:
  78. price-service:
  79. condition: service_healthy
  80. configs:
  81. mnemonic:
  82. file: ./path/to/mnemonic.txt # Replace this with the path to the mnemonic file
  83. price_config:
  84. file: ./price-config.mainnet.sample.yaml # Replace this with the path to the price configuration file