github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/docs/components/sequencer.md (about) 1 # Component: Sequencer 2 3 ## ZKEVM Sequencer: 4 5 The ZKEVM Sequencer is an optional but ancillary module that proposes new batches using transactions stored in the Pool Database. 6 7 ## Running: 8 9 The preferred way to run the ZKEVM Sequencer component is via Docker and Docker Compose. 10 11 ```bash 12 docker pull hermeznetwork/supernets2-node 13 ``` 14 15 To orchestrate multiple deployments of the different ZKEVM Node components, a `docker-compose.yaml` file for Docker Compose can be used: 16 17 ```yaml 18 supernets2-sequencer: 19 container_name: supernets2-sequencer 20 image: supernets2-node 21 command: 22 - "/bin/sh" 23 - "-c" 24 - "/app/supernets2-node run --genesis /app/genesis.json --cfg /app/config.toml --components sequencer" 25 ``` 26 27 The container alone needs some parameters configured, access to certain configuration files and the appropriate ports exposed. 28 29 - environment: Env variables that supersede the config file 30 - `ZKEVM_NODE_POOLDB_HOST`: Name of PoolDB Database Host 31 - `ZKEVM_NODE_STATEDB_HOST`: Name of StateDB Database Host 32 - volumes: 33 - `your Account Keystore file`: /pk/keystore (note, this `/pk/keystore` value is the default path that's written in the Public Configuration files on this repo, meant to expedite deployments, it can be superseded via an env flag `ZKEVM_NODE_ETHERMAN_PRIVATEKEYPATH`.) 34 - `your config.toml file`: /app/config.toml 35 - `your genesis.json file`: /app/genesis.json 36 37 [How to generate an account keystore](./account_keystore.md)