mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
add kafka nodes as extra hosts for the container
This commit is contained in:
@@ -23,6 +23,15 @@ so-kafka:
|
|||||||
- sobridge:
|
- sobridge:
|
||||||
- ipv4_address: {{ DOCKER.containers['so-kafka'].ip }}
|
- ipv4_address: {{ DOCKER.containers['so-kafka'].ip }}
|
||||||
- user: kafka
|
- user: kafka
|
||||||
|
- extra_hosts:
|
||||||
|
{% for node in KAFKANODES %}
|
||||||
|
- {{ node }}:{{ KAFKANODES[node].ip }}
|
||||||
|
{% endfor %}
|
||||||
|
{% if DOCKER.containers['so-kafka'].extra_hosts %}
|
||||||
|
{% for XTRAHOST in DOCKER.containers['so-kafka'].extra_hosts %}
|
||||||
|
- {{ XTRAHOST }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
{% for BINDING in DOCKER.containers['so-kafka'].port_bindings %}
|
{% for BINDING in DOCKER.containers['so-kafka'].port_bindings %}
|
||||||
- {{ BINDING }}
|
- {{ BINDING }}
|
||||||
|
|||||||
Reference in New Issue
Block a user