docker-compose.testnet.sample.yaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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.14.8.1
  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.0
  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. healthcheck:
  39. test:
  40. [
  41. "CMD",
  42. "wget",
  43. "--no-verbose",
  44. "--tries=1",
  45. "--spider",
  46. "http://localhost:4200/ready",
  47. ]
  48. start_period: 20s
  49. depends_on:
  50. - spy
  51. price-pusher:
  52. build:
  53. context: .
  54. # Uncomment this line (and comment out the above lines) to use a prebuilt image. Replace <version>
  55. # with the latest released image of the EVM price pusher from this repo release page:
  56. # https://github.com/pyth-network/pyth-js/releases
  57. # image: public.ecr.aws/pyth-network/xc-evm-price-pusher:v<version>
  58. restart: always
  59. command:
  60. - "--"
  61. - "injective"
  62. # you can choose to provide all the options here or a path to the config file
  63. # we are providing a path to the config file
  64. - "--config"
  65. - "/command_config"
  66. configs:
  67. - command_config
  68. - mnemonic
  69. - price_config
  70. depends_on:
  71. price-service:
  72. condition: service_healthy
  73. configs:
  74. command_config:
  75. # Replace this with the path to the configuration file. You need to update the paths defined in
  76. # the config file
  77. file: ./config.injective.testnet.sample.json
  78. mnemonic:
  79. file: ./mnemonic # Replace this with the path to the mnemonic file
  80. price_config:
  81. file: ./price-config.testnet.sample.yaml # Replace this with the path to the price configuration file