docker-compose.mainnet.yaml 2.0 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/wormhole-v2-mainnet-bootstrap.xlabs.xyz/udp/8999/quic/p2p/12D3KooWNQ9tVrcb64tw6bNs2CaNrUGPM7yRrKvBBheQ5yCyPHKC,/dns4/wormhole.mcf.rocks/udp/8999/quic/p2p/12D3KooWDZVv7BhZ8yFLkarNdaSWaB43D6UbQwExJ8nnGAEmfHcU,/dns4/wormhole-v2-mainnet-bootstrap.staking.fund/udp/8999/quic/p2p/12D3KooWG8obDX9DNi1KUwZNu9xkGwfKqTp2GFwuuHpWZ3nQruS1"
  14. - "--network"
  15. - "/wormhole/mainnet/2"
  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": "6bb14509a612f01fbbc4cffeebd4bbfb492a86df717ebe92eb6df432a3f00a25"
  31. },
  32. {
  33. "chain_id": 26,
  34. "emitter_address": "f8cd23c2ab91237730770bbea08d61005cdda0984348f3f6eecb559638c0bba0"
  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: mainnet
  43. DB_API_CLUSTER: pythnet
  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