Skip to content

Commit

Permalink
docker: add cluster-id docker_add_cluster_id_flag
Browse files Browse the repository at this point in the history
  • Loading branch information
yakimant committed Nov 7, 2023
1 parent 091c9fa commit 1bb5afe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ nim_waku_node_tmp_path: '{{ nim_waku_cont_vol }}/data/tmp'
#nim_waku_node_key: ~
nim_waku_node_key_file_path: '{{ nim_waku_cont_vol }}/nodekey'

# Optional cluster-id flag
#nim_waku_cluster_id: 1

# Protocols
nim_waku_protocols_available: ['relay', 'store', 'filter', 'lightpush', 'rln-relay', 'peer-exchange']
nim_waku_protocols_enabled: ['relay', 'store', 'filter', 'lightpush']
Expand Down
5 changes: 4 additions & 1 deletion templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ services:
{% endif %}
{% endif %}{# if "v1" in nim_waku_cont_tag #}
{% if nim_waku_node_key is defined %}
--nodekey={{ nim_waku_node_key | mandatory }}
--nodekey={{ nim_waku_node_key }}
{% endif %}
{% if nim_waku_cluster_id is defined %}
--cluster-id={{ nim_waku_cluster_id }}
{% endif %}
--nat=extip:{{ nim_waku_public_address }}
--log-level={{ nim_waku_log_level | upper }}
Expand Down

0 comments on commit 1bb5afe

Please sign in to comment.