mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Allow additional docker parameters
This commit is contained in:
@@ -18,6 +18,11 @@ strelka_backend:
|
|||||||
- binds:
|
- binds:
|
||||||
- /opt/so/conf/strelka/backend/:/etc/strelka/:ro
|
- /opt/so/conf/strelka/backend/:/etc/strelka/:ro
|
||||||
- /opt/so/conf/strelka/rules/:/etc/yara/:ro
|
- /opt/so/conf/strelka/rules/:/etc/yara/:ro
|
||||||
|
{% if DOCKER.containers['so-strelka-backend'].custom_bind_mounts %}
|
||||||
|
{% for BIND in DOCKER.containers['so-strelka-backend'].custom_bind_mounts %}
|
||||||
|
- {{ BIND }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
- name: so-strelka-backend
|
- name: so-strelka-backend
|
||||||
- networks:
|
- networks:
|
||||||
- sobridge:
|
- sobridge:
|
||||||
@@ -25,6 +30,17 @@ strelka_backend:
|
|||||||
- command: strelka-backend
|
- command: strelka-backend
|
||||||
- extra_hosts:
|
- extra_hosts:
|
||||||
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
|
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
|
||||||
|
{% if DOCKER.containers['so-strelka-backend'].extra_hosts %}
|
||||||
|
{% for XTRAHOST in DOCKER.containers['so-strelka-backend'].extra_hosts %}
|
||||||
|
- {{ XTRAHOST }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% if DOCKER.containers['so-strelka-backend'].extra_env %}
|
||||||
|
- environment:
|
||||||
|
{% for XTRAENV in DOCKER.containers['so-strelka-backend'].extra_env %}
|
||||||
|
- {{ XTRAENV }}
|
||||||
|
{% enfor %}
|
||||||
|
{% endif %}
|
||||||
- restart_policy: on-failure
|
- restart_policy: on-failure
|
||||||
|
|
||||||
delete_so-strelka-backend_so-status.disabled:
|
delete_so-strelka-backend_so-status.disabled:
|
||||||
|
|||||||
@@ -22,11 +22,27 @@ strelka_coordinator:
|
|||||||
- entrypoint: redis-server --save "" --appendonly no
|
- entrypoint: redis-server --save "" --appendonly no
|
||||||
- extra_hosts:
|
- extra_hosts:
|
||||||
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
|
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
|
||||||
|
{% if DOCKER.containers['so-strelka-coordinator'].extra_hosts %}
|
||||||
|
{% for XTRAHOST in DOCKER.containers['so-strelka-coordinator'].extra_hosts %}
|
||||||
|
- {{ XTRAHOST }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
{% for BINDING in DOCKER.containers['so-strelka-coordinator'].port_bindings %}
|
{% for BINDING in DOCKER.containers['so-strelka-coordinator'].port_bindings %}
|
||||||
- {{ BINDING }}
|
- {{ BINDING }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% if DOCKER.containers['so-strelka-coordinator'].extra_env %}
|
||||||
|
- environment:
|
||||||
|
{% for XTRAENV in DOCKER.containers['so-strelka-coordinator'].extra_env %}
|
||||||
|
- {{ XTRAENV }}
|
||||||
|
{% enfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% if DOCKER.containers['so-strelka-coordinator'].custom_bind_mounts %}
|
||||||
|
- binds:
|
||||||
|
{% for BIND in DOCKER.containers['so-strelka-coordinator'].custom_bind_mounts %}
|
||||||
|
- {{ BIND }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
delete_so-strelka-coordinator_so-status.disabled:
|
delete_so-strelka-coordinator_so-status.disabled:
|
||||||
file.uncomment:
|
file.uncomment:
|
||||||
- name: /opt/so/conf/so-status/so-status.conf
|
- name: /opt/so/conf/so-status/so-status.conf
|
||||||
|
|||||||
@@ -18,6 +18,11 @@ strelka_filestream:
|
|||||||
- binds:
|
- binds:
|
||||||
- /opt/so/conf/strelka/filestream/:/etc/strelka/:ro
|
- /opt/so/conf/strelka/filestream/:/etc/strelka/:ro
|
||||||
- /nsm/strelka:/nsm/strelka
|
- /nsm/strelka:/nsm/strelka
|
||||||
|
{% if DOCKER.containers['so-strelka-filestream'].custom_bind_mounts %}
|
||||||
|
{% for BIND in DOCKER.containers['so-strelka-filestream'].custom_bind_mounts %}
|
||||||
|
- {{ BIND }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
- name: so-strelka-filestream
|
- name: so-strelka-filestream
|
||||||
- networks:
|
- networks:
|
||||||
- sobridge:
|
- sobridge:
|
||||||
@@ -25,6 +30,17 @@ strelka_filestream:
|
|||||||
- command: strelka-filestream
|
- command: strelka-filestream
|
||||||
- extra_hosts:
|
- extra_hosts:
|
||||||
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
|
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
|
||||||
|
{% if DOCKER.containers['so-strelka-filestream'].extra_hosts %}
|
||||||
|
{% for XTRAHOST in DOCKER.containers['so-strelka-filestream'].extra_hosts %}
|
||||||
|
- {{ XTRAHOST }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% if DOCKER.containers['so-strelka-filestream'].extra_env %}
|
||||||
|
- environment:
|
||||||
|
{% for XTRAENV in DOCKER.containers['so-strelka-filestream'].extra_env %}
|
||||||
|
- {{ XTRAENV }}
|
||||||
|
{% enfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
delete_so-strelka-filestream_so-status.disabled:
|
delete_so-strelka-filestream_so-status.disabled:
|
||||||
file.uncomment:
|
file.uncomment:
|
||||||
|
|||||||
@@ -18,6 +18,11 @@ strelka_frontend:
|
|||||||
- binds:
|
- binds:
|
||||||
- /opt/so/conf/strelka/frontend/:/etc/strelka/:ro
|
- /opt/so/conf/strelka/frontend/:/etc/strelka/:ro
|
||||||
- /nsm/strelka/log/:/var/log/strelka/:rw
|
- /nsm/strelka/log/:/var/log/strelka/:rw
|
||||||
|
{% if DOCKER.containers['so-strelka-frontend'].custom_bind_mounts %}
|
||||||
|
{% for BIND in DOCKER.containers['so-strelka-frontend'].custom_bind_mounts %}
|
||||||
|
- {{ BIND }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
- privileged: True
|
- privileged: True
|
||||||
- name: so-strelka-frontend
|
- name: so-strelka-frontend
|
||||||
- networks:
|
- networks:
|
||||||
@@ -26,10 +31,21 @@ strelka_frontend:
|
|||||||
- command: strelka-frontend
|
- command: strelka-frontend
|
||||||
- extra_hosts:
|
- extra_hosts:
|
||||||
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
|
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
|
||||||
|
{% if DOCKER.containers['so-strelka-frontend'].extra_hosts %}
|
||||||
|
{% for XTRAHOST in DOCKER.containers['so-strelka-frontend'].extra_hosts %}
|
||||||
|
- {{ XTRAHOST }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
{% for BINDING in DOCKER.containers['so-strelka-frontend'].port_bindings %}
|
{% for BINDING in DOCKER.containers['so-strelka-frontend'].port_bindings %}
|
||||||
- {{ BINDING }}
|
- {{ BINDING }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% if DOCKER.containers['so-strelka-frontend'].extra_env %}
|
||||||
|
- environment:
|
||||||
|
{% for XTRAENV in DOCKER.containers['so-strelka-frontend'].extra_env %}
|
||||||
|
- {{ XTRAENV }}
|
||||||
|
{% enfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
delete_so-strelka-frontend_so-status.disabled:
|
delete_so-strelka-frontend_so-status.disabled:
|
||||||
file.uncomment:
|
file.uncomment:
|
||||||
|
|||||||
@@ -22,10 +22,27 @@ strelka_gatekeeper:
|
|||||||
- entrypoint: redis-server --save "" --appendonly no --maxmemory-policy allkeys-lru
|
- entrypoint: redis-server --save "" --appendonly no --maxmemory-policy allkeys-lru
|
||||||
- extra_hosts:
|
- extra_hosts:
|
||||||
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
|
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
|
||||||
|
{% if DOCKER.containers['so-strelka-gatekeeper'].extra_hosts %}
|
||||||
|
{% for XTRAHOST in DOCKER.containers['so-strelka-gatekeeper'].extra_hosts %}
|
||||||
|
- {{ XTRAHOST }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
{% for BINDING in DOCKER.containers['so-strelka-gatekeeper'].port_bindings %}
|
{% for BINDING in DOCKER.containers['so-strelka-gatekeeper'].port_bindings %}
|
||||||
- {{ BINDING }}
|
- {{ BINDING }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% if DOCKER.containers['so-strelka-gatekeeper'].custom_bind_mounts %}
|
||||||
|
- binds:
|
||||||
|
{% for BIND in DOCKER.containers['so-strelka-gatekeeper'].custom_bind_mounts %}
|
||||||
|
- {{ BIND }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% if DOCKER.containers['so-strelka-gatekeeper'].extra_env %}
|
||||||
|
- environment:
|
||||||
|
{% for XTRAENV in DOCKER.containers['so-strelka-gatekeeper'].extra_env %}
|
||||||
|
- {{ XTRAENV }}
|
||||||
|
{% enfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
delete_so-strelka-gatekeeper_so-status.disabled:
|
delete_so-strelka-gatekeeper_so-status.disabled:
|
||||||
file.uncomment:
|
file.uncomment:
|
||||||
|
|||||||
@@ -17,6 +17,11 @@ strelka_manager:
|
|||||||
- image: {{ GLOBALS.registry_host }}:5000/{{ GLOBALS.image_repo }}/so-strelka-manager:{{ GLOBALS.so_version }}
|
- image: {{ GLOBALS.registry_host }}:5000/{{ GLOBALS.image_repo }}/so-strelka-manager:{{ GLOBALS.so_version }}
|
||||||
- binds:
|
- binds:
|
||||||
- /opt/so/conf/strelka/manager/:/etc/strelka/:ro
|
- /opt/so/conf/strelka/manager/:/etc/strelka/:ro
|
||||||
|
{% if DOCKER.containers['so-strelka-manager'].custom_bind_mounts %}
|
||||||
|
{% for BIND in DOCKER.containers['so-strelka-manager'].custom_bind_mounts %}
|
||||||
|
- {{ BIND }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
- name: so-strelka-manager
|
- name: so-strelka-manager
|
||||||
- networks:
|
- networks:
|
||||||
- sobridge:
|
- sobridge:
|
||||||
@@ -24,6 +29,17 @@ strelka_manager:
|
|||||||
- command: strelka-manager
|
- command: strelka-manager
|
||||||
- extra_hosts:
|
- extra_hosts:
|
||||||
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
|
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
|
||||||
|
{% if DOCKER.containers['so-strelka-manager'].extra_hosts %}
|
||||||
|
{% for XTRAHOST in DOCKER.containers['so-strelka-manager'].extra_hosts %}
|
||||||
|
- {{ XTRAHOST }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% if DOCKER.containers['so-strelka-manager'].extra_env %}
|
||||||
|
- environment:
|
||||||
|
{% for XTRAENV in DOCKER.containers['so-strelka-manager'].extra_env %}
|
||||||
|
- {{ XTRAENV }}
|
||||||
|
{% enfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
delete_so-strelka-manager_so-status.disabled:
|
delete_so-strelka-manager_so-status.disabled:
|
||||||
file.uncomment:
|
file.uncomment:
|
||||||
|
|||||||
Reference in New Issue
Block a user