Deploy L2
This guide walks you through the process of deploying the L2 network components using Simple Surge Node.
Setup Process
1. Clone Repository
First, clone the Simple Surge Node repository:
git clone https://github.com/NethermindEth/simple-surge-node.git
cd simple-surge-node
2. Configure Environment
Create and configure your environment file:
cp .env.sample .env
Edit your .env
file with the appropriate machine address where you deployed the Kurtosis package. Example configuration:
L1_ENDPOINT_WS=ws://185.3.95.99:32003
L1_BEACON_HTTP=http://185.3.95.99:33001
Make sure to replace the IP address and ports with your actual deployment values.
3. Start Components
The deployment consists of three main components that need to be started in sequence:
- Driver
- Proposer
- Prover Relayer
docker compose -f docker-compose.yml --profile nethermind_execution_l2 up -d
docker compose -f docker-compose.yml --profile proposer up -d
docker compose -f docker-compose-prover.yml --profile prover up -d
Verification
After starting all components, you should:
- Check that all Docker containers are running properly
- Monitor the logs for any startup errors
- Verify network connectivity between components
- (Optional) Deploy BlockScout for chain exploration and verification:
docker compose -f docker-compose.yml --profile blockscout up -d
Once deployed, you can access BlockScout through these URLs:
- L1 BlockScout: http://localhost:35001
- L2 BlockScout: http://localhost:4000
BlockScout provides a web interface for:
- Exploring blocks, transactions, and accounts
- Verifying smart contracts
- Monitoring network activity
- Tracking token transfers and balances
It's important to start the components in the specified order:
- Driver
- Proposer
- Prover Relayer
- (Optional) BlockScout
This sequence ensures proper initialization and communication between components.
Troubleshooting
If you encounter issues:
- Verify all environment variables are correctly set
- Check Docker logs for specific error messages
- Ensure all required ports are accessible
- Confirm network connectivity between components