This commit is contained in:
Para Dox
2025-05-19 21:33:29 +07:00
parent 5a04784b1c
commit c5671b50c3
3 changed files with 59 additions and 6 deletions

View File

@@ -155,7 +155,7 @@ services:
- prometheus-scrape.port=7300 - prometheus-scrape.port=7300
- prometheus-scrape.path=/metrics - prometheus-scrape.path=/metrics
op-mainnet-l2geth-archive: op-mainnet-l2geth-archive-client:
image: ${OP_L2GETH_IMAGE:-ethereumoptimism/l2geth}:${OP_MAINNET_L2GETH_VERSION:-0.5.31} image: ${OP_L2GETH_IMAGE:-ethereumoptimism/l2geth}:${OP_MAINNET_L2GETH_VERSION:-0.5.31}
sysctls: sysctls:
# TCP Performance # TCP Performance
@@ -176,6 +176,7 @@ services:
- 12952:12952/udp - 12952:12952/udp
expose: expose:
- 8545 - 8545
- 8546
env_file: env_file:
- ./op/op/mainnet/l2geth.env - ./op/op/mainnet/l2geth.env
environment: environment:
@@ -206,7 +207,7 @@ services:
- ${OP_MAINNET_L2GETH_ARCHIVE_LEVELDB_HASH_DATA:-op-mainnet-l2geth-archive-leveldb-hash}:/geth - ${OP_MAINNET_L2GETH_ARCHIVE_LEVELDB_HASH_DATA:-op-mainnet-l2geth-archive-leveldb-hash}:/geth
- ./op/op/mainnet:/config - ./op/op/mainnet:/config
- /slowdisk:/slowdisk - /slowdisk:/slowdisk
logging: logging: &logging-defaults
driver: json-file driver: json-file
options: options:
max-size: 10m max-size: 10m
@@ -214,6 +215,27 @@ services:
labels: labels:
- prometheus-scrape.enabled=false - prometheus-scrape.enabled=false
op-mainnet-l2geth-archive:
image: nginx
expose:
- '80'
environment:
PROXY_HOST: op-mainnet-l2geth-archive-client
RPC_PATH: ''
RPC_PORT: 8545
WS_PATH: ''
WS_PORT: 8546
restart: unless-stopped
depends_on:
- op-mainnet-l2geth-archive-client
networks:
- chains
volumes:
- ./nginx-proxy:/etc/nginx/templates
logging: *logging-defaults
labels:
- prometheus-scrape.enabled=false
volumes: volumes:
op-mainnet-l2geth-archive-leveldb-hash: op-mainnet-l2geth-archive-leveldb-hash:
op-mainnet-op-geth-archive-leveldb-hash: op-mainnet-op-geth-archive-leveldb-hash:

View File

@@ -29,7 +29,7 @@ x-logging-defaults: &logging-defaults
max-file: '3' max-file: '3'
services: services:
op-mainnet-l2geth-archive: op-mainnet-l2geth-archive-client:
image: ${OP_L2GETH_IMAGE:-ethereumoptimism/l2geth}:${OP_MAINNET_L2GETH_VERSION:-0.5.31} image: ${OP_L2GETH_IMAGE:-ethereumoptimism/l2geth}:${OP_MAINNET_L2GETH_VERSION:-0.5.31}
sysctls: sysctls:
# TCP Performance # TCP Performance
@@ -50,6 +50,7 @@ services:
- 12952:12952/udp - 12952:12952/udp
expose: expose:
- 8545 - 8545
- 8546
env_file: env_file:
- ./op/op/mainnet/l2geth.env - ./op/op/mainnet/l2geth.env
environment: environment:
@@ -83,9 +84,30 @@ services:
logging: *logging-defaults logging: *logging-defaults
labels: labels:
- prometheus-scrape.enabled=false - prometheus-scrape.enabled=false
op-mainnet-l2geth-archive:
image: nginx
expose:
- '80'
environment:
PROXY_HOST: op-mainnet-l2geth-archive-client
RPC_PATH: ''
RPC_PORT: 8545
WS_PATH: ''
WS_PORT: 8546
restart: unless-stopped
depends_on:
- op-mainnet-l2geth-archive-client
networks:
- chains
volumes:
- ./nginx-proxy:/etc/nginx/templates
logging: *logging-defaults
labels:
- prometheus-scrape.enabled=false
- traefik.enable=true - traefik.enable=true
- traefik.http.middlewares.op-mainnet-l2geth-archive-leveldb-hash-stripprefix.stripprefix.prefixes=/op-mainnet-l2geth-archive - traefik.http.middlewares.op-mainnet-l2geth-archive-leveldb-hash-stripprefix.stripprefix.prefixes=/op-mainnet-l2geth-archive
- traefik.http.services.op-mainnet-l2geth-archive-leveldb-hash.loadbalancer.server.port=8545 - traefik.http.services.op-mainnet-l2geth-archive-leveldb-hash.loadbalancer.server.port=80
- ${NO_SSL:-traefik.http.routers.op-mainnet-l2geth-archive-leveldb-hash.entrypoints=websecure} - ${NO_SSL:-traefik.http.routers.op-mainnet-l2geth-archive-leveldb-hash.entrypoints=websecure}
- ${NO_SSL:-traefik.http.routers.op-mainnet-l2geth-archive-leveldb-hash.tls.certresolver=myresolver} - ${NO_SSL:-traefik.http.routers.op-mainnet-l2geth-archive-leveldb-hash.tls.certresolver=myresolver}
- ${NO_SSL:-traefik.http.routers.op-mainnet-l2geth-archive-leveldb-hash.rule=Host(`$DOMAIN`) && (Path(`/op-mainnet-l2geth-archive`) || Path(`/op-mainnet-l2geth-archive/`))} - ${NO_SSL:-traefik.http.routers.op-mainnet-l2geth-archive-leveldb-hash.rule=Host(`$DOMAIN`) && (Path(`/op-mainnet-l2geth-archive`) || Path(`/op-mainnet-l2geth-archive/`))}

View File

@@ -1,16 +1,25 @@
###############################################################################
# ↓ OPTIMISM OPTIONS ↓ #
###############################################################################
USING_OVM=true USING_OVM=true
SEQUENCER_CLIENT_HTTP=https://mainnet.optimism.io SEQUENCER_CLIENT_HTTP=https://mainnet.optimism.io
BLOCK_SIGNER_ADDRESS=0x00000398232E2064F896018496b4b44b3D62751F BLOCK_SIGNER_ADDRESS=0x00000398232E2064F896018496b4b44b3D62751F
BLOCK_SIGNER_PRIVATE_KEY=6587ae678cf4fc9a33000cdbf9f35226b71dcc6a4684a31203241f9bcfd55d27 BLOCK_SIGNER_PRIVATE_KEY=6587ae678cf4fc9a33000cdbf9f35226b71dcc6a4684a31203241f9bcfd55d27
BLOCK_SIGNER_PRIVATE_KEY_PASSWORD=pwd BLOCK_SIGNER_PRIVATE_KEY_PASSWORD=pwd
ETH1_CTC_DEPLOYMENT_HEIGHT=13596466 ETH1_CTC_DEPLOYMENT_HEIGHT=13596466
ETH1_SYNC_SERVICE_ENABLE=true ETH1_SYNC_SERVICE_ENABLE=false
L2GETH_GENESIS_URL=https://storage.googleapis.com/optimism/mainnet/genesis-berlin.json L2GETH_GENESIS_URL=https://storage.googleapis.com/optimism/mainnet/genesis-berlin.json
L2GETH_GENESIS_HASH=0x106b0a3247ca54714381b1109e82cc6b7e32fd79ae56fbcc2e7b1541122f84ea L2GETH_GENESIS_HASH=0x106b0a3247ca54714381b1109e82cc6b7e32fd79ae56fbcc2e7b1541122f84ea
ROLLUP_CLIENT_HTTP=http://optimism-dtl:7878 ROLLUP_CLIENT_HTTP=http://optimism-dtl:7878
ROLLUP_MAX_CALLDATA_SIZE=40000 ROLLUP_MAX_CALLDATA_SIZE=40000
ROLLUP_POLL_INTERVAL_FLAG=1s ROLLUP_POLL_INTERVAL_FLAG=1s
ROLLUP_VERIFIER_ENABLE=true ROLLUP_VERIFIER_ENABLE=false
###############################################################################
# ↓ STANDARD OPTIONS ↓ #
###############################################################################
DATADIR=/geth DATADIR=/geth
CHAIN_ID=10 CHAIN_ID=10
NETWORK_ID=10 NETWORK_ID=10