web3-proxy/docker-compose.common.yml
2023-07-09 21:57:39 -07:00

19 lines
589 B
YAML

services:
web3-proxy:
# TODO: build in dev but use docker hub in prod?
build: .
init: true
restart: unless-stopped
command: --config /config.toml --workers 16 proxyd
# rust's tokio crate expects a SIGINT https://tokio.rs/tokio/topics/shutdown
stop_signal: SIGINT
environment:
RUST_LOG: "info,ethers_providers::rpc=off,web3_proxy=info"
volumes:
- /etc/ssl/certs/:/etc/ssl/certs/:ro
- /usr/local/share/ca-certificates/:/usr/local/share/ca-certificates/:ro
volatile_redis:
image: redis:6.0-alpine
command: [ "redis-server" ]