fix the logging issue

This commit is contained in:
Para Dox
2025-05-12 10:12:47 +07:00
parent c83ed6d7d3
commit 3d98079a2a
273 changed files with 1885 additions and 0 deletions

View File

@@ -22,6 +22,11 @@
# curl -X POST https://${IP}.traefik.me/op-mainnet-archive \
# -H "Content-Type: application/json" \
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
x-logging-defaults: &logging-defaults
driver: json-file
options:
max-size: 10m
max-file: '3'
services:
op-mainnet-archive:
@@ -85,6 +90,7 @@ services:
- ./op/op/mainnet:/config
- .jwtsecret:/jwtsecret:ro
- /slowdisk:/slowdisk
logging: *logging-defaults
labels:
- traefik.enable=true
- traefik.http.middlewares.op-mainnet-op-erigon-archive-trace-stripprefix.stripprefix.prefixes=/op-mainnet-archive
@@ -134,6 +140,7 @@ services:
volumes:
- ./op/op/mainnet:/config
- .jwtsecret:/jwtsecret:ro
logging: *logging-defaults
op-mainnet-archive-classic:
image: ${OP_L2GETH_IMAGE:-ethereumoptimism/l2geth}:${OP_MAINNET_L2GETH_VERSION:-0.5.31}
@@ -189,6 +196,11 @@ services:
- ${OP_MAINNET_L2GETH_ARCHIVE_LEVELDB_HASH_DATA:-op-mainnet-l2geth-archive-leveldb-hash}:/geth
- ./op/op/mainnet:/config
- /slowdisk:/slowdisk
logging:
driver: json-file
options:
max-size: 10m
max-file: '3'
labels: []
volumes: