34 lines
887 B
YAML
34 lines
887 B
YAML
services:
|
|
# Builds and serves the solana proxy
|
|
solana-proxy:
|
|
restart: unless-stopped
|
|
image: cerc/solana-proxy:local
|
|
environment:
|
|
# Provider endpoints and auth (optional)
|
|
ALCHEMY_API_KEY: ${ALCHEMY_API_KEY}
|
|
HELIUS_API_KEY: ${HELIUS_API_KEY}
|
|
QUICKNODE_ENDPOINT: ${QUICKNODE_ENDPOINT}
|
|
QUICKNODE_TOKEN: ${QUICKNODE_TOKEN}
|
|
|
|
# Proxy settings
|
|
CACHE_SIZE_GB: 100
|
|
DISABLE_CACHE: ${DISABLE_CACHE}
|
|
BACKOFF_MINUTES: 30
|
|
|
|
# Logging
|
|
LOG_LEVEL: ${LOG_LEVEL:-INFO}
|
|
ERROR_DB_PATH: /app/errors.db
|
|
command: ["solana-proxy"]
|
|
volumes:
|
|
- solana-proxy-data:/app
|
|
ports:
|
|
- "8545"
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8545').read()"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
volumes:
|
|
solana-proxy-data:
|