Files
zeekay 0927b010e8 Add production explorer configs for LUX and ZOO networks
- docker-mainnet: LUX Mainnet explorer (chain 96369, ports 3000/4000)
- docker-lux-testnet: LUX Testnet explorer (chain 96368, ports 3010/4010)
- docker-zoo-mainnet: ZOO Mainnet explorer (chain 200200, ports 3001/4002)
- docker-zoo-testnet: ZOO Testnet explorer (chain 200201, ports 3011/4011)

Key features:
- Auto-migration on startup with ReleaseTasks.create_and_migrate()
- ECTO_USE_SSL=false for PostgreSQL connections
- Reduced POOL_SIZE=40 to support multiple explorers on shared DB
- Shared visualizer and sig-provider from lux-mainnet
- Proper stats service with BLOCKSCOUT_API_URL configuration
- All services on hanzo-network for inter-container communication
2025-12-11 19:56:45 +00:00

1.7 KiB

LUX Network Mainnet Explorer

Production-ready Blockscout explorer configuration for LUX Network Mainnet.

Network Details

Services

Service Port Description
Backend 4000 Blockscout API
Frontend 3000 Next.js Web UI
Visualizer 8050 Contract visualization
Sig Provider 8051 Signature provider
Stats 8052 Statistics service
User Ops Indexer 8053 ERC-4337 indexer

Prerequisites

  1. PostgreSQL database with databases:

    • explorer_luxnet - Main explorer database
    • stats_luxnet - Statistics database
    • user_ops_luxnet - User operations database
  2. LUX Node running on port 9630 with RPC enabled

  3. Nginx configured to proxy:

    • explore.lux.network -> localhost:3000
    • api-explore.lux.network -> localhost:4000

Quick Start

# Start all services
docker-compose up -d

# View logs
docker-compose logs -f

# Stop all services
docker-compose down

Environment Variables

Backend

  • ETHEREUM_JSONRPC_HTTP_URL: LUX node RPC endpoint
  • DATABASE_URL: PostgreSQL connection string
  • CHAIN_ID: 96369

Frontend

  • NEXT_PUBLIC_API_HOST: Backend API host (api-explore.lux.network)
  • NEXT_PUBLIC_NETWORK_NAME: LUX Network
  • NEXT_PUBLIC_NETWORK_ID: 96369

Maintenance

Restart services

docker-compose restart backend frontend

Update images

docker-compose pull
docker-compose up -d

View service health

docker-compose ps
curl http://localhost:4000/api/v2/stats