2023-02-22 13:44:42 -08:00
|
|
|
services:
|
|
|
|
spy:
|
|
|
|
# Find latest Guardian images in https://github.com/wormhole-foundation/wormhole/pkgs/container/guardiand
|
2023-07-07 01:13:04 -07:00
|
|
|
image: ghcr.io/wormhole-foundation/guardiand:v2.19.0
|
2023-02-22 13:44:42 -08:00
|
|
|
command:
|
|
|
|
- "spy"
|
|
|
|
- "--nodeKey"
|
|
|
|
- "/node.key"
|
|
|
|
- "--spyRPC"
|
|
|
|
- "[::]:7072"
|
|
|
|
- "--bootstrap"
|
|
|
|
- "/dns4/wormhole-mainnet-v2-bootstrap.certus.one/udp/8999/quic/p2p/12D3KooWQp644DK27fd3d4Km3jr7gHiuJJ5ZGmy8hH4py7fP4FP7"
|
|
|
|
- "--network"
|
|
|
|
- "/wormhole/mainnet/2"
|
|
|
|
- "--logLevel"
|
|
|
|
- "warn"
|
|
|
|
price-service:
|
|
|
|
# Find latest price service images https://gallery.ecr.aws/pyth-network/xc-server
|
2023-07-07 01:13:04 -07:00
|
|
|
image: public.ecr.aws/pyth-network/xc-server:v3.0.8
|
2023-02-22 13:44:42 -08:00
|
|
|
environment:
|
|
|
|
SPY_SERVICE_HOST: "spy:7072"
|
|
|
|
SPY_SERVICE_FILTERS: |
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"chain_id": 1,
|
|
|
|
"emitter_address": "6bb14509a612f01fbbc4cffeebd4bbfb492a86df717ebe92eb6df432a3f00a25"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"chain_id": 26,
|
|
|
|
"emitter_address": "f8cd23c2ab91237730770bbea08d61005cdda0984348f3f6eecb559638c0bba0"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
REST_PORT: "4200"
|
|
|
|
PROM_PORT: "8081"
|
2023-07-07 01:13:04 -07:00
|
|
|
READINESS_SPY_SYNC_TIME_SECONDS: "5"
|
|
|
|
READINESS_NUM_LOADED_SYMBOLS: "280"
|
2023-02-22 13:44:42 -08:00
|
|
|
LOG_LEVEL: warning
|
2023-05-17 11:20:17 -07:00
|
|
|
WORMHOLE_CLUSTER: mainnet
|
2023-02-22 13:44:42 -08:00
|
|
|
healthcheck:
|
|
|
|
test:
|
|
|
|
[
|
|
|
|
"CMD",
|
|
|
|
"wget",
|
|
|
|
"--no-verbose",
|
|
|
|
"--tries=1",
|
|
|
|
"--spider",
|
|
|
|
"http://localhost:4200/ready",
|
|
|
|
]
|
|
|
|
start_period: 20s
|
|
|
|
depends_on:
|
|
|
|
- spy
|
|
|
|
price-pusher:
|
2023-07-07 01:13:04 -07:00
|
|
|
# Use this to build the price pusher from source. A dependency of the pusher docker
|
|
|
|
# image is the pyth-crosschain monorepo lerna docker image. Build lerna image
|
|
|
|
# using the following command from the repo root:
|
|
|
|
# `docker buildx build -f tilt_devnet/docker_images/Dockerfile.lerna -t lerna .`
|
|
|
|
#
|
|
|
|
# Please note that the docker build from source only works in x86_64 platforms
|
|
|
|
# and doesn't work on arm platforms (like Apple M1/M2).
|
|
|
|
#
|
|
|
|
# build:
|
|
|
|
# context: .
|
|
|
|
|
|
|
|
# Replace <version> with the latest released image of the price pusher from here:
|
|
|
|
# https://gallery.ecr.aws/pyth-network/xc-price-pusher
|
|
|
|
image: public.ecr.aws/pyth-network/xc-price-pusher:v<version>
|
2023-02-22 13:44:42 -08:00
|
|
|
restart: always
|
|
|
|
command:
|
|
|
|
- "--"
|
2023-03-03 00:23:43 -08:00
|
|
|
- "evm"
|
2023-03-01 13:05:39 -08:00
|
|
|
- "--endpoint"
|
2023-02-22 13:44:42 -08:00
|
|
|
# Replace this with RPC endpoint URL for the EVM network.
|
|
|
|
- "https://bsc-dataseed2.binance.org"
|
|
|
|
- "--mnemonic-file"
|
|
|
|
- "/mnemonic"
|
2023-03-01 13:05:39 -08:00
|
|
|
- "--pyth-contract-address"
|
|
|
|
- "0xd7308b14BF4008e7C7196eC35610B1427C5702EA"
|
|
|
|
- "--price-service-endpoint"
|
2023-02-22 13:44:42 -08:00
|
|
|
- "http://price-service:4200"
|
|
|
|
- "--price-config-file"
|
|
|
|
- "/price_config"
|
|
|
|
configs:
|
|
|
|
- mnemonic
|
|
|
|
- price_config
|
|
|
|
depends_on:
|
|
|
|
price-service:
|
|
|
|
condition: service_healthy
|
|
|
|
configs:
|
|
|
|
mnemonic:
|
|
|
|
file: ./path/to/mnemonic.txt # Replace this with the path to the mnemonic file
|
|
|
|
price_config:
|
|
|
|
file: ./price-config.mainnet.sample.yaml # Replace this with the path to the price configuration file
|