docker-compose.testnet.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. # Or alternatively use a locally built image
  21. # image: pyth_price_server
  22. environment:
  23. SPY_SERVICE_HOST: "spy:7072"
  24. SPY_SERVICE_FILTERS: |
  25. [
  26. {
  27. "chain_id": 1,
  28. "emitter_address": "f346195ac02f37d60d4db8ffa6ef74cb1be3550047543a4a9ee9acf4d78697b0"
  29. },
  30. {
  31. "chain_id": 26,
  32. "emitter_address": "a27839d641b07743c0cb5f68c51f8cd31d2c0762bec00dc6fcd25433ef1ab5b6"
  33. }
  34. ]
  35. REST_PORT: "4200"
  36. PROM_PORT: "8081"
  37. READINESS_SPY_SYNC_TIME_SECONDS: "20"
  38. READINESS_NUM_LOADED_SYMBOLS: "50"
  39. LOG_LEVEL: warning
  40. DB_API_CLUSTER: devnet
  41. REMOVE_EXPIRED_VALUES_INTERVAL_SECONDS: "60"
  42. CACHE_TTL_SECONDS: "300"
  43. DB_API_ENDPOINT: "https://web-api.pyth.network"
  44. ports:
  45. - "4200:4200"
  46. healthcheck:
  47. test:
  48. [
  49. "CMD",
  50. "wget",
  51. "--no-verbose",
  52. "--tries=1",
  53. "--spider",
  54. "http://localhost:4200/ready",
  55. ]
  56. start_period: 20s
  57. depends_on:
  58. - spy