Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 24 additions & 47 deletions apps/evm/single/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,54 +15,31 @@ services:
- ./chain:/root/chain:ro
- ./jwttoken:/root/jwt:ro
- logs:/root/logs
entrypoint: /bin/sh -c
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better clarity and to avoid potential shell parsing issues, it's recommended to use the list form for the entrypoint.

    entrypoint: ["/bin/sh", "-c"]

command:
- node
- --chain
- /root/chain/genesis.json
- --metrics
- 0.0.0.0:9001
- --log.file.directory
- /root/logs
- --authrpc.addr
- 0.0.0.0
- --authrpc.port
- "8551"
- --authrpc.jwtsecret
- /root/jwt/jwt.hex
- --http
- --http.addr
- 0.0.0.0
- --http.port
- "8545"
- --http.api
- eth,net,web3,txpool
- --ws
- --ws.addr
- 0.0.0.0
- --ws.port
- "8546"
- --ws.api
- eth,net,web3
- --engine.persistence-threshold
- "0"
- --engine.memory-block-buffer-target
- "0"
- --disable-discovery
- --txpool.pending-max-count
- "200000"
- --txpool.pending-max-size
- "200"
- --txpool.queued-max-count
- "200000"
- --txpool.queued-max-size
- "200"
- --txpool.max-account-slots
- "2048"
- --txpool.max-new-txns
- "2048"
- --txpool.additional-validation-tasks
- "16"
- --rollkit.enable
- |
lumen node \
--chain /root/chain/genesis.json \
--metrics 0.0.0.0:9001 \
--log.file.directory /root/logs \
--authrpc.addr 0.0.0.0 \
--authrpc.port 8551 \
--authrpc.jwtsecret /root/jwt/jwt.hex \
--http --http.addr 0.0.0.0 --http.port 8545 \
--http.api eth,net,web3,txpool \
--ws --ws.addr 0.0.0.0 --ws.port 8546 \
--ws.api eth,net,web3 \
--engine.persistence-threshold 0 \
--engine.memory-block-buffer-target 0 \
--disable-discovery \
--txpool.pending-max-count 200000 \
--txpool.pending-max-size 200 \
--txpool.queued-max-count 200000 \
--txpool.queued-max-size 200 \
--txpool.max-account-slots 2048 \
--txpool.max-new-txns 2048 \
--txpool.additional-validation-tasks 16 \
--rollkit.enable
Comment on lines +20 to +42
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Using the folded block scalar > is a bit cleaner here as it avoids the need for trailing backslashes on each line, improving readability.

      - >
          lumen node
            --chain /root/chain/genesis.json
            --metrics 0.0.0.0:9001
            --log.file.directory /root/logs
            --authrpc.addr 0.0.0.0
            --authrpc.port 8551
            --authrpc.jwtsecret /root/jwt/jwt.hex
            --http --http.addr 0.0.0.0 --http.port 8545
            --http.api eth,net,web3,txpool
            --ws --ws.addr 0.0.0.0 --ws.port 8546
            --ws.api eth,net,web3
            --engine.persistence-threshold 0
            --engine.memory-block-buffer-target 0
            --disable-discovery
            --txpool.pending-max-count 200000
            --txpool.pending-max-size 200
            --txpool.queued-max-count 200000
            --txpool.queued-max-size 200
            --txpool.max-account-slots 2048
            --txpool.max-new-txns 2048
            --txpool.additional-validation-tasks 16
            --rollkit.enable

networks:
- rollkit-network

Expand Down
Loading