try to generalize op stack
This commit is contained in:
84
op-lisk-sepolia.yml
Normal file
84
op-lisk-sepolia.yml
Normal file
@@ -0,0 +1,84 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
op-lisk-sepolia: # this is Optimism's geth client
|
||||
build: ./op
|
||||
expose:
|
||||
- 8545 # RPC / Websocket
|
||||
- 54521 # P2P TCP (currently unused)
|
||||
- 54521/udp # P2P UDP (currently unused)
|
||||
- 6060 # metrics
|
||||
ports:
|
||||
- "54521:54521"
|
||||
- "54521:54521/udp"
|
||||
command: [ "sh", "./geth-entrypoint" ]
|
||||
restart: always
|
||||
stop_grace_period: 30s
|
||||
volumes:
|
||||
- lisk-sepolia:/data
|
||||
environment:
|
||||
- "OP_GETH_GENESIS_FILE_PATH=sepolia/lisk/genesis.json"
|
||||
#- "OP_GETH_SEQUENCER_HTTP=https://mainnet-sequencer.base.org"
|
||||
- "OP_GETH_GCMODE=full"
|
||||
- "OP_GETH_STATE_SCHEME=path"
|
||||
- "GETH_DB_ENGINE=pebble"
|
||||
- "CHAIN_NAME=lisk-sepolia"
|
||||
- "P2P_PORT=54521"
|
||||
- "WS_PORT=8545"
|
||||
- "OP_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a"
|
||||
- "OP_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.middlewares.base-stripprefix.stripprefix.prefixes=/lisk-sepolia"
|
||||
- "traefik.http.services.base.loadbalancer.server.port=8545"
|
||||
- "traefik.http.routers.base.entrypoints=websecure"
|
||||
- "traefik.http.routers.base.tls.certresolver=myresolver"
|
||||
- "traefik.http.routers.base.rule=Host(`$DOMAIN`) && PathPrefix(`/lisk-sepolia`)"
|
||||
- "traefik.http.routers.base.middlewares=base-stripprefix, ipwhitelist"
|
||||
networks:
|
||||
- chains
|
||||
|
||||
|
||||
op-lisk-sepolia-node:
|
||||
build: ./op
|
||||
depends_on:
|
||||
- op-lisk-sepolia
|
||||
expose:
|
||||
- 8545 # RPC
|
||||
- 18660 # P2P TCP
|
||||
- 18660/udp # P2P UDP
|
||||
- 7300 # metrics
|
||||
- 6060 # pprof
|
||||
ports:
|
||||
- "18660:18660"
|
||||
- "18660:18660/udp"
|
||||
command: [ "sh", "./op-node-entrypoint" ]
|
||||
restart: always
|
||||
stop_grace_period: 30s
|
||||
environment:
|
||||
- "OP_NODE_NETWORK=lisk-sepolia"
|
||||
- "OP_NODE_L1_ETH_RPC=${ETHEREUM_SEPOLIA_ENDPOINT}"
|
||||
- "OP_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a"
|
||||
- "OP_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt"
|
||||
- "OP_NODE_L2_ENGINE_RPC=http://op-lisk-sepolia: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=lisk"
|
||||
- "OP_NODE_P2P_BOOTNODES=enr:-Iu4QI5BdaTmfMhNKXd-vSniNRSCXk-a3m3nQbe9TCV3puGtCr6FvX6-Vr0Uvx4tYVilGCIYdQNf6fK8O2MKxVqjYJ8BgmlkgnY0gmlwhCKN6PiJc2VjcDI1NmsxoQLBQIaRwlvNxrRKcGtxKmh4JS_orkawS44D4KIORICoi4N0Y3CCIyuDdWRwgiMr"
|
||||
- "OP_NODE_P2P_LISTEN_IP=0.0.0.0"
|
||||
- "OP_NODE_P2P_LISTEN_TCP_PORT=18660"
|
||||
- "OP_NODE_P2P_LISTEN_UDP_PORT=18660"
|
||||
- "OP_NODE_ROLLUP_CONFIG=sepolia/lisk/rollup.json"
|
||||
- "OP_NODE_RPC_ADDR=0.0.0.0"
|
||||
- "OP_NODE_RPC_PORT=8545"
|
||||
- "OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log"
|
||||
- "OP_NODE_VERIFIER_L1_CONFS=4"
|
||||
- "OP_NODE_L1_RPC_KIND=${ETHEREUM_SEPOLIA_ENDPOINT_KIND:-basic}"
|
||||
- "OP_NODE_L1_TRUST_RPC=${ETHEREUM_SEPLIA_ENDPOINT_TRUST:-false}"
|
||||
networks:
|
||||
- chains
|
||||
|
||||
volumes:
|
||||
lisk-sepolia:
|
||||
Reference in New Issue
Block a user