now with prometheus. hopefully
This commit is contained in:
@@ -55,11 +55,15 @@ services:
|
||||
- 37509:37509/udp
|
||||
expose:
|
||||
- 8545
|
||||
- 6060
|
||||
- 8551
|
||||
entrypoint: /bin/sh -c '[ ! -d /root/.local/share/erigon/chaindata/mdbx.dat ] && erigon init --datadir /root/.local/share/erigon /config/genesis.json; exec erigon "$@"' --
|
||||
command:
|
||||
- --datadir=/root/.local/share/erigon
|
||||
- --maxpeers=50
|
||||
- --metrics
|
||||
- --metrics.addr=0.0.0.0
|
||||
- --metrics.port=6060
|
||||
- --nat=extip:${IP}
|
||||
- --networkid=34443
|
||||
- --p2p.allowed-ports=32509
|
||||
@@ -89,6 +93,9 @@ services:
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=6060
|
||||
- prometheus-scrape.path=/debug/metrics/prometheus
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.mode-mainnet-op-erigon-archive-trace-stripprefix.stripprefix.prefixes=/mode-mainnet-archive
|
||||
- traefik.http.services.mode-mainnet-op-erigon-archive-trace.loadbalancer.server.port=8545
|
||||
@@ -117,6 +124,7 @@ services:
|
||||
- OP_NODE_METRICS_ADDR=0.0.0.0
|
||||
- OP_NODE_METRICS_ENABLED=true
|
||||
- OP_NODE_METRICS_PORT=7300
|
||||
- OP_NODE_METRIC_ENABLED=true
|
||||
- OP_NODE_NETWORK=mode-mainnet
|
||||
- OP_NODE_P2P_ADVERTISE_IP=${IP}
|
||||
- OP_NODE_P2P_LISTEN_IP=0.0.0.0
|
||||
@@ -138,6 +146,10 @@ services:
|
||||
- ./op/mode/mainnet:/config
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=7300
|
||||
- prometheus-scrape.path=/metrics
|
||||
|
||||
volumes:
|
||||
mode-mainnet-op-erigon-archive-trace:
|
||||
|
||||
Reference in New Issue
Block a user