docker-compose.testnet.yaml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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.23.28
  5. restart: on-failure
  6. command:
  7. - "spy"
  8. - "--nodeKey"
  9. - "/node.key"
  10. - "--spyRPC"
  11. - "[::]:7072"
  12. - "--bootstrap"
  13. - "/dns4/t-guardian-01.nodes.stable.io/udp/8999/quic/p2p/12D3KooWCW3LGUtkCVkHZmVSZHzL3C4WRKWfqAiJPz1NR7dT9Bxh,/dns4/t-guardian-02.nodes.stable.io/udp/8999/quic/p2p/12D3KooWJXA6goBCiWM8ucjzc4jVUBSqL9Rri6UpjHbkMPErz5zK"
  14. - "--network"
  15. - "/wormhole/testnet/2/1"
  16. - "--logLevel"
  17. - "warn"
  18. price-service:
  19. # Find latest price service images https://gallery.ecr.aws/pyth-network/xc-server
  20. image: public.ecr.aws/pyth-network/xc-server:v3.0.8
  21. restart: on-failure
  22. # Or alternatively use a locally built image
  23. # image: pyth_price_server
  24. environment:
  25. SPY_SERVICE_HOST: "spy:7072"
  26. SPY_SERVICE_FILTERS: |
  27. [
  28. {
  29. "chain_id": 1,
  30. "emitter_address": "f346195ac02f37d60d4db8ffa6ef74cb1be3550047543a4a9ee9acf4d78697b0"
  31. },
  32. {
  33. "chain_id": 26,
  34. "emitter_address": "a27839d641b07743c0cb5f68c51f8cd31d2c0762bec00dc6fcd25433ef1ab5b6"
  35. }
  36. ]
  37. REST_PORT: "4200"
  38. PROM_PORT: "8081"
  39. READINESS_SPY_SYNC_TIME_SECONDS: "5"
  40. READINESS_NUM_LOADED_SYMBOLS: "280"
  41. LOG_LEVEL: warning
  42. WORMHOLE_CLUSTER: testnet
  43. DB_API_CLUSTER: devnet
  44. REMOVE_EXPIRED_VALUES_INTERVAL_SECONDS: "60"
  45. CACHE_TTL_SECONDS: "300"
  46. DB_API_ENDPOINT: "https://web-api.pyth.network"
  47. ports:
  48. - "4200:4200"
  49. healthcheck:
  50. test:
  51. [
  52. "CMD",
  53. "wget",
  54. "--no-verbose",
  55. "--tries=1",
  56. "--spider",
  57. "http://localhost:4200/ready",
  58. ]
  59. start_period: 20s
  60. depends_on:
  61. - spy