docker-compose.testnet.sample.yaml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 price pusher from this repo release page:
  56. # https://github.com/pyth-network/pyth-crosschain/releases
  57. # image: public.ecr.aws/pyth-network/xc-price-pusher:v<version>
  58. restart: always
  59. command:
  60. - "--"
  61. - "evm"
  62. - "--endpoint"
  63. # Replace this with RPC endpoint URL for the EVM network.
  64. - "https://endpoints.omniatech.io/v1/fantom/testnet/public"
  65. - "--mnemonic-file"
  66. - "/mnemonic"
  67. - "--pyth-contract-address"
  68. - "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C"
  69. - "--price-service-endpoint"
  70. - "http://price-service:4200"
  71. - "--price-config-file"
  72. - "/price_config"
  73. configs:
  74. - mnemonic
  75. - price_config
  76. depends_on:
  77. price-service:
  78. condition: service_healthy
  79. configs:
  80. mnemonic:
  81. file: ./mnemonic # Replace this with the path to the mnemonic file
  82. price_config:
  83. file: ./price-config.testnet.sample.yaml # Replace this with the path to the price configuration file