add support for custom bootnodes with geth_bootnodes

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-02-06 20:32:08 +01:00
parent 8b0dba55ea
commit 1921fcfe98
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 6 additions and 0 deletions

View File

@ -58,6 +58,9 @@ geth_v5disc_enabled: true
geth_trusted_peers: []
geth_trusted_peers_file: '{{ geth_data_path }}/trusted-nodes.json'
# Custom bootnodes
geth_bootnodes: []
# Enable metrics
geth_metrics_enabled: true

View File

@ -73,6 +73,9 @@
--ws.api={{ geth_websocket_api }}
--ws.origins='{{ geth_websocket_origins }}'
{% endif %}
{% if (geth_bootnodes|length) > 0 %}
--bootnodes="{{ geth_bootnodes | join(',') }}"
{% endif %}
volumes:
- '{{ geth_cont_vol }}/keys:/keys:rw'
# WARNING: This assumes /data is mounted, see bootstrap role