docker-compose.testnet.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-testnet-v2-bootstrap.certus.one/udp/8999/quic/p2p/12D3KooWAkB9ynDur1Jtoa97LBUp8RXdhzS5uHgAfdTquJbrbN7i"
  13. - "--network"
  14. - "/wormhole/testnet/2/1"
  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": "f346195ac02f37d60d4db8ffa6ef74cb1be3550047543a4a9ee9acf4d78697b0"
  27. },
  28. {
  29. "chain_id": 26,
  30. "emitter_address": "a27839d641b07743c0cb5f68c51f8cd31d2c0762bec00dc6fcd25433ef1ab5b6"
  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: testnet
  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://endpoints.omniatech.io/v1/fantom/testnet/public"
  66. - "--mnemonic-file"
  67. - "/mnemonic"
  68. - "--pyth-contract-address"
  69. - "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C"
  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: ./mnemonic # Replace this with the path to the mnemonic file
  83. price_config:
  84. file: ./price-config.testnet.sample.yaml # Replace this with the path to the price configuration file