docker-compose.mainnet.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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:v.2.14.5
  5. command:
  6. - "spy"
  7. - "--nodeKey"
  8. - "/node.key"
  9. - "--spyRPC"
  10. - "[::]:7072"
  11. - "--bootstrap"
  12. - "/dns4/wormhole-mainnet-v2-bootstrap.certus.one/udp/8999/quic/p2p/12D3KooWQp644DK27fd3d4Km3jr7gHiuJJ5ZGmy8hH4py7fP4FP7"
  13. - "--network"
  14. - "/wormhole/mainnet/2"
  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:v2.2.3
  20. # Or alternatively use a locally built image
  21. # image: pyth_price_service
  22. environment:
  23. SPY_SERVICE_HOST: "spy:7072"
  24. SPY_SERVICE_FILTERS: |
  25. [
  26. {
  27. "chain_id": 1,
  28. "emitter_address": "6bb14509a612f01fbbc4cffeebd4bbfb492a86df717ebe92eb6df432a3f00a25"
  29. },
  30. {
  31. "chain_id": 26,
  32. "emitter_address": "f8cd23c2ab91237730770bbea08d61005cdda0984348f3f6eecb559638c0bba0"
  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: pythnet
  41. REMOVE_EXPIRED_VALUES_INTERVAL_SECONDS: "60"
  42. CACHE_TTL_SECONDS: "300"
  43. DB_API_ENDPOINT: "https://web-api.pyth.network"
  44. healthcheck:
  45. test:
  46. [
  47. "CMD",
  48. "wget",
  49. "--no-verbose",
  50. "--tries=1",
  51. "--spider",
  52. "http://localhost:4200/ready",
  53. ]
  54. start_period: 20s
  55. depends_on:
  56. - spy