Skip to content

Instantly share code, notes, and snippets.

@gregdhill
Created February 18, 2020 10:39
Show Gist options
  • Save gregdhill/e7614d74a285642019eb04c2e523cf9e to your computer and use it in GitHub Desktop.
Save gregdhill/e7614d74a285642019eb04c2e523cf9e to your computer and use it in GitHub Desktop.
Multi-Node Burrow Chain
# burrow spec -v4 | burrow configure -s- --pool --json
# jq 'del(.Logging)' burrow000.json > burrow.tmp && mv burrow.tmp burrow000.json
# jq 'del(.Logging)' burrow001.json > burrow.tmp && mv burrow.tmp burrow001.json
# jq 'del(.Logging)' burrow002.json > burrow.tmp && mv burrow.tmp burrow002.json
# jq 'del(.Logging)' burrow003.json > burrow.tmp && mv burrow.tmp burrow003.json
version: '3'
services:
node1:
image: &burrow hyperledger/burrow:0.29.8
network_mode: host
command:
- start
- --config
- burrow000.json
working_dir: /
volumes:
- ./burrow000.json:/burrow000.json
- ./.burrow000:/.burrow000
- ./.keys:/.keys
node2:
image: *burrow
network_mode: host
command:
- start
- --config
- burrow001.json
working_dir: /
volumes:
- ./burrow001.json:/burrow001.json
- ./.burrow001:/.burrow001
- ./.keys:/.keys
node3:
image: *burrow
network_mode: host
command:
- start
- --config
- burrow002.json
working_dir: /
volumes:
- ./burrow002.json:/burrow002.json
- ./.burrow002:/.burrow002
- ./.keys:/.keys
node4:
image: *burrow
network_mode: host
command:
- start
- --config
- burrow003.json
working_dir: /
volumes:
- ./burrow003.json:/burrow003.json
- ./.burrow003:/.burrow003
- ./.keys:/.keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment