web3-proxy/docker-compose.common.yml
Bryan Stitt c8fbf46885 stats in redis that actually work
we should still investigate a real time series db, but stats in redis is much simpler for now
2022-10-07 02:15:53 +00:00

22 lines
612 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
# rust's tokio crate expects a SIGINT https://tokio.rs/tokio/topics/shutdown
stop_signal: SIGINT
environment:
#RUST_LOG: "info,web3_proxy=debug"
RUST_LOG: info
persistent_redis:
image: redis:6.0-alpine
command: [ "redis-server", "--save", "", "--appendonly", "no" ]
# be sure to mount /data!
volatile_redis:
image: redis:6.0-alpine
command: [ "redis-server", "--save", "60", "1" ]