chore: mount all datadirs in docker-compose.yml (#7088)

This commit is contained in:
Alexey Shekhirin
2024-03-10 21:15:22 +00:00
committed by GitHub
parent 494361992d
commit 8e5c943d29

View File

@ -11,16 +11,18 @@ services:
- '8545:8545' # rpc - '8545:8545' # rpc
- '8551:8551' # engine - '8551:8551' # engine
volumes: volumes:
- rethdata_mainnet:/root/.local/share/reth/mainnet/db - mainnet_data:/root/.local/share/reth/mainnet
- rethdata_sepolia:/root/.local/share/reth/sepolia/db - sepolia_data:/root/.local/share/reth/sepolia
- rethlogs:/root/rethlogs - holesky_data:/root/.local/share/reth/holesky
- logs:/root/logs
- ./jwttoken:/root/jwt:ro - ./jwttoken:/root/jwt:ro
# For Sepolia, replace `--chain mainnet` with `--chain sepolia` # For Sepolia, replace `--chain mainnet` with `--chain sepolia`
# For Holesky, replace `--chain mainnet` with `--chain holesky`
command: > command: >
node node
--chain mainnet --chain mainnet
--metrics 0.0.0.0:9001 --metrics 0.0.0.0:9001
--log.file.directory /root/rethlogs --log.file.directory /root/logs
--authrpc.addr 0.0.0.0 --authrpc.addr 0.0.0.0
--authrpc.port 8551 --authrpc.port 8551
--authrpc.jwtsecret /root/jwt/jwt.hex --authrpc.jwtsecret /root/jwt/jwt.hex
@ -64,11 +66,13 @@ services:
/run.sh" /run.sh"
volumes: volumes:
rethdata_mainnet: mainnet_data:
driver: local driver: local
rethdata_sepolia: sepolia_data:
driver: local driver: local
rethlogs: holesky_data:
driver: local
logs:
driver: local driver: local
prometheusdata: prometheusdata:
driver: local driver: local