Files
ethereum-rpc-docker/op-zora-mainnet.yml
Sebastian de22d5a38a teh agent
2024-04-20 05:12:19 +02:00

103 lines
4.4 KiB
YAML

version: '3.1'
services:
op-zora-mainnet: # this is Optimism's geth client
#image: stakesquid/op-zora-mainnet:v0.1
build:
context: ./op
args:
OP_VERSION: v1.3.1
GETH_VERSION: v1.101304.1
expose:
- 8545 # RPC / Websocket
- 2483 # P2P TCP (currently unused)
- 2483/udp # P2P UDP (currently unused)
- 6060 # metrics
ports:
- "2483:2483"
- "2483:2483/udp"
command: [ "sh", "./geth-entrypoint" ]
restart: always
stop_grace_period: 3m
volumes:
- zora-mainnet:/data
- .jwtsecret:/jwtsecret
environment:
- "OP_GETH_GENESIS_FILE_PATH=/app/mainnet/zora/genesis.json"
- "OP_GETH_SEQUENCER_HTTP=https://rpc-zora-mainnet-0.t.conduit.xyz"
- "OP_GETH_GCMODE=full"
- "OP_GETH_STATE_SCHEME=hash"
- "GETH_DB_ENGINE=pebble"
- "P2P_PORT=2483"
- "WS_PORT=8545"
- "OP_NODE_L2_ENGINE_AUTH=/jwtsecret"
- "HOST_IP=${IP}"
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.zora-stripprefix.stripprefix.prefixes=/zora-mainnet"
- "traefik.http.services.zora.loadbalancer.server.port=8545"
- "traefik.http.routers.zora.entrypoints=websecure"
- "traefik.http.routers.zora.tls.certresolver=myresolver"
- "traefik.http.routers.zora.rule=Host(`$DOMAIN`) && PathPrefix(`/zora-mainnet`)"
- "traefik.http.routers.zora.middlewares=zora-stripprefix, ipwhitelist"
networks:
- chains
op-zora-mainnet-node:
#image: stakesquid/op-zora-mainnet:v0.1
build:
context: ./op
args:
OP_VERSION: v1.3.1
GETH_VERSION: v1.101304.1
depends_on:
- op-zora-mainnet
expose:
- 8545 # RPC
- 3306 # P2P TCP
- 3306/udp # P2P UDP
- 7300 # metrics
- 6060 # pprof
ports:
- "3306:3306"
- "3306:3306/udp"
command: [ "sh", "./op-node-entrypoint" ]
restart: always
volumes:
- .jwtsecret:/jwtsecret
stop_grace_period: 30s
environment:
#- "OP_NODE_NETWORK=zora-mainnet-0"
- "OP_NODE_L1_ETH_RPC=${ZORA_MAINNET_L1_ENDPOINT}"
- "OP_NODE_L2_ENGINE_AUTH_RAW=${JWTSECRET}"
- "OP_NODE_L2_ENGINE_AUTH=/jwtsecret"
- "OP_NODE_L2_ENGINE_RPC=http://op-zora-mainnet:8551"
- "OP_NODE_LOG_LEVEL=info"
- "OP_NODE_METRICS_ADDR=0.0.0.0"
- "OP_NODE_METRICS_ENABLED=true"
- "OP_NODE_METRICS_PORT=7300"
#- "OP_NODE_P2P_AGENT=zora-mainnet"
- "OP_NODE_P2P_BOOTNODES=enode://9d221b41d61cb40162ae573b5ba7063c9535b5088ddc06f87099c461e7969068a54d93cdbd3ab119885481c7aec68f81500b400f36ac1bfef11efa116c1a2c1b@35.227.155.250:9222?discport=30301,enode://d25ce99435982b04d60c4b41ba256b84b888626db7bee45a9419382300fbe907359ae5ef250346785bff8d3b9d07cd3e017a27e2ee3cfda3bcbb0ba762ac9674@bootnode.conduit.xyz:0?discport=30301,enode://2d4e7e9d48f4dd4efe9342706dd1b0024681bd4c3300d021f86fc75eab7865d4e0cbec6fbc883f011cfd6a57423e7e2f6e104baad2b744c3cafaec6bc7dc92c1@34.65.43.171:0?discport=30305,enode://9d7a3efefe442351217e73b3a593bcb8efffb55b4807699972145324eab5e6b382152f8d24f6301baebbfb5ecd4127bd3faab2842c04cd432bdf50ba092f6645@34.65.109.126:0?discport=30305"
- "OP_NODE_P2P_STATIC=/ip4/35.227.155.250/tcp/9222/p2p/16Uiu2HAmPENXJ1a1SFj7tSrwuvTM2dXAAKsKjPobXmjds9U76XUB"
- "OP_NODE_P2P_AGENT=conduit"
- "OP_NODE_P2P_LISTEN_IP=0.0.0.0"
- "OP_NODE_P2P_LISTEN_TCP_PORT=3306"
- "OP_NODE_P2P_LISTEN_UDP_PORT=3306"
- "OP_NODE_ROLLUP_CONFIG=/app/mainnet/zora/rollup.json"
- "OP_NODE_RPC_ADDR=0.0.0.0"
- "OP_NODE_P2P_ADVERTISE_IP=${IP}"
- "OP_NODE_RPC_PORT=8545"
- "OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log"
- "OP_NODE_VERIFIER_L1_CONFS=4"
- "OP_NODE_L1_RPC_MAX_BATCH_SIZE=${ZORA_MAINNET_L1_BATCH_SIZE:-20}"
- "OP_NODE_L1_RPC_RATE_LIMIT=${ZORA_MAINNET_L1_RATE_LIMIT:-30}"
- "OP_NODE_L1_RPC_KIND=${ZORA_MAINNET_L1_ENDPOINT_KIND:-basic}"
- "OP_NODE_L1_TRUST_RPC=${ZORA_MAINNET_L1_ENDPOINT_TRUST:-false}"
- "OP_NODE_L1_BEACON=${ZORA_MAINNET_L1_BEACON_URL}"
networks:
- chains
volumes:
zora-mainnet: