This commit is contained in:
Para Dox
2025-05-19 21:41:09 +07:00
parent 62fde28752
commit c648d1304a
2 changed files with 4 additions and 48 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-client: op-mainnet-l2geth-archive:
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,7 +176,6 @@ 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:
@@ -207,7 +206,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-defaults logging:
driver: json-file driver: json-file
options: options:
max-size: 10m max-size: 10m
@@ -215,27 +214,6 @@ 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-client: op-mainnet-l2geth-archive:
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,7 +50,6 @@ 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:
@@ -84,30 +83,9 @@ 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=80 - traefik.http.services.op-mainnet-l2geth-archive-leveldb-hash.loadbalancer.server.port=8545
- ${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/`))}