Allow additional docker parameters

This commit is contained in:
Mike Reeves
2023-05-18 16:52:38 -04:00
parent 8917f9b9d2
commit 5315c51197
26 changed files with 28 additions and 28 deletions

View File

@@ -47,7 +47,7 @@ so-elastalert:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-elastalert'].extra_env %} {% for XTRAENV in DOCKER.containers['so-elastalert'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- require: - require:
- cmd: wait_for_elasticsearch - cmd: wait_for_elasticsearch

View File

@@ -43,7 +43,7 @@ so-elastic-fleet-package-registry:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-elastic-fleet-package-registry'].extra_env %} {% for XTRAENV in DOCKER.containers['so-elastic-fleet-package-registry'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
delete_so-elastic-fleet-package-registry_so-status.disabled: delete_so-elastic-fleet-package-registry_so-status.disabled:
file.uncomment: file.uncomment:

View File

@@ -58,7 +58,7 @@ so-elastic-fleet:
{% if DOCKER.containers['so-elastic-fleet'].extra_env %} {% if DOCKER.containers['so-elastic-fleet'].extra_env %}
{% for XTRAENV in DOCKER.containers['so-elastic-fleet'].extra_env %} {% for XTRAENV in DOCKER.containers['so-elastic-fleet'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
{% endif %} {% endif %}

View File

@@ -43,7 +43,7 @@ so-elasticsearch:
{% if DOCKER.containers['so-elasticsearch'].extra_env %} {% if DOCKER.containers['so-elasticsearch'].extra_env %}
{% for XTRAENV in DOCKER.containers['so-elasticsearch'].extra_env %} {% for XTRAENV in DOCKER.containers['so-elasticsearch'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- port_bindings: - port_bindings:
{% for BINDING in DOCKER.containers['so-elasticsearch'].port_bindings %} {% for BINDING in DOCKER.containers['so-elasticsearch'].port_bindings %}

View File

@@ -35,7 +35,7 @@ so-idh:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-idh'].extra_env %} {% for XTRAENV in DOCKER.containers['so-idh'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- watch: - watch:
- file: opencanary_config - file: opencanary_config

View File

@@ -29,13 +29,13 @@ so-idstools:
{% if DOCKER.containers['so-elastalert'].extra_env %} {% if DOCKER.containers['so-elastalert'].extra_env %}
{% for XTRAENV in DOCKER.containers['so-elastalert'].extra_env %} {% for XTRAENV in DOCKER.containers['so-elastalert'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
{% elif DOCKER.containers['so-idstools'].extra_env %} {% elif DOCKER.containers['so-idstools'].extra_env %}
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-idstools'].extra_env %} {% for XTRAENV in DOCKER.containers['so-idstools'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- binds: - binds:
- /opt/so/conf/idstools/etc:/opt/so/idstools/etc:ro - /opt/so/conf/idstools/etc:/opt/so/idstools/etc:ro

View File

@@ -33,7 +33,7 @@ so-influxdb:
{% if DOCKER.containers['so-influxdb'].extra_env %} {% if DOCKER.containers['so-influxdb'].extra_env %}
{% for XTRAENV in DOCKER.containers['so-influxdb'].extra_env %} {% for XTRAENV in DOCKER.containers['so-influxdb'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- binds: - binds:
- /opt/so/log/influxdb/:/log:rw - /opt/so/log/influxdb/:/log:rw

View File

@@ -28,7 +28,7 @@ so-kibana:
{% if DOCKER.containers['so-kibana'].extra_env %} {% if DOCKER.containers['so-kibana'].extra_env %}
{% for XTRAENV in DOCKER.containers['so-kibana'].extra_env %} {% for XTRAENV in DOCKER.containers['so-kibana'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- extra_hosts: - extra_hosts:
- {{ GLOBALS.manager }}:{{ GLOBALS.manager_ip }} - {{ GLOBALS.manager }}:{{ GLOBALS.manager_ip }}

View File

@@ -44,7 +44,7 @@ so-kratos:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-kratos'].extra_env %} {% for XTRAENV in DOCKER.containers['so-kratos'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- restart_policy: unless-stopped - restart_policy: unless-stopped
- watch: - watch:

View File

@@ -36,7 +36,7 @@ so-logstash:
{% if DOCKER.containers['so-logstash'].extra_env %} {% if DOCKER.containers['so-logstash'].extra_env %}
{% for XTRAENV in DOCKER.containers['so-logstash'].extra_env %} {% for XTRAENV in DOCKER.containers['so-logstash'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- port_bindings: - port_bindings:
{% for BINDING in DOCKER.containers['so-logstash'].port_bindings %} {% for BINDING in DOCKER.containers['so-logstash'].port_bindings %}

View File

@@ -52,7 +52,7 @@ so-nginx:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-nginx'].extra_env %} {% for XTRAENV in DOCKER.containers['so-nginx'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- cap_add: NET_BIND_SERVICE - cap_add: NET_BIND_SERVICE
- port_bindings: - port_bindings:

View File

@@ -39,7 +39,7 @@ so-steno:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-steno'].extra_env %} {% for XTRAENV in DOCKER.containers['so-steno'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- watch: - watch:
- file: stenoconf - file: stenoconf

View File

@@ -54,7 +54,7 @@ so-playbook:
{% if DOCKER.containers['so-playbook'].extra_env %} {% if DOCKER.containers['so-playbook'].extra_env %}
{% for XTRAENV in DOCKER.containers['so-playbook'].extra_env %} {% for XTRAENV in DOCKER.containers['so-playbook'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- port_bindings: - port_bindings:
{% for BINDING in DOCKER.containers['so-playbook'].port_bindings %} {% for BINDING in DOCKER.containers['so-playbook'].port_bindings %}

View File

@@ -50,7 +50,7 @@ so-redis:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-redis'].extra_env %} {% for XTRAENV in DOCKER.containers['so-redis'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- entrypoint: "redis-server /usr/local/etc/redis/redis.conf" - entrypoint: "redis-server /usr/local/etc/redis/redis.conf"
- watch: - watch:

View File

@@ -47,7 +47,7 @@ so-dockerregistry:
{% if DOCKER.containers['so-dockerregistry'].extra_env %} {% if DOCKER.containers['so-dockerregistry'].extra_env %}
{% for XTRAENV in DOCKER.containers['so-dockerregistry'].extra_env %} {% for XTRAENV in DOCKER.containers['so-dockerregistry'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- retry: - retry:
attempts: 5 attempts: 5

View File

@@ -36,7 +36,7 @@ so-sensoroni:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-sensoroni'].extra_env %} {% for XTRAENV in DOCKER.containers['so-sensoroni'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- watch: - watch:
- file: /opt/so/conf/sensoroni/sensoroni.json - file: /opt/so/conf/sensoroni/sensoroni.json

View File

@@ -51,7 +51,7 @@ so-soc:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-soc'].extra_env %} {% for XTRAENV in DOCKER.containers['so-soc'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- watch: - watch:
- file: /opt/so/conf/soc/* - file: /opt/so/conf/soc/*

View File

@@ -50,7 +50,7 @@ so-soctopus:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-soctopus'].extra_env %} {% for XTRAENV in DOCKER.containers['so-soctopus'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- require: - require:
- file: soctopusconf - file: soctopusconf

View File

@@ -39,7 +39,7 @@ strelka_backend:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-strelka-backend'].extra_env %} {% for XTRAENV in DOCKER.containers['so-strelka-backend'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- restart_policy: on-failure - restart_policy: on-failure

View File

@@ -35,7 +35,7 @@ strelka_coordinator:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-strelka-coordinator'].extra_env %} {% for XTRAENV in DOCKER.containers['so-strelka-coordinator'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
{% if DOCKER.containers['so-strelka-coordinator'].custom_bind_mounts %} {% if DOCKER.containers['so-strelka-coordinator'].custom_bind_mounts %}
- binds: - binds:

View File

@@ -39,7 +39,7 @@ strelka_filestream:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-strelka-filestream'].extra_env %} {% for XTRAENV in DOCKER.containers['so-strelka-filestream'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
delete_so-strelka-filestream_so-status.disabled: delete_so-strelka-filestream_so-status.disabled:

View File

@@ -44,7 +44,7 @@ strelka_frontend:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-strelka-frontend'].extra_env %} {% for XTRAENV in DOCKER.containers['so-strelka-frontend'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
delete_so-strelka-frontend_so-status.disabled: delete_so-strelka-frontend_so-status.disabled:

View File

@@ -41,7 +41,7 @@ strelka_gatekeeper:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-strelka-gatekeeper'].extra_env %} {% for XTRAENV in DOCKER.containers['so-strelka-gatekeeper'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
delete_so-strelka-gatekeeper_so-status.disabled: delete_so-strelka-gatekeeper_so-status.disabled:

View File

@@ -38,7 +38,7 @@ strelka_manager:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-strelka-manager'].extra_env %} {% for XTRAENV in DOCKER.containers['so-strelka-manager'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
delete_so-strelka-manager_so-status.disabled: delete_so-strelka-manager_so-status.disabled:

View File

@@ -25,7 +25,7 @@ so-telegraf:
{% if DOCKER.containers['so-telegraf'].extra_env %} {% if DOCKER.containers['so-telegraf'].extra_env %}
{% for XTRAENV in DOCKER.containers['so-telegraf'].extra_env %} {% for XTRAENV in DOCKER.containers['so-telegraf'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- network_mode: host - network_mode: host
- init: True - init: True

View File

@@ -48,7 +48,7 @@ so-zeek:
- environment: - environment:
{% for XTRAENV in DOCKER.containers['so-zeek'].extra_env %} {% for XTRAENV in DOCKER.containers['so-zeek'].extra_env %}
- {{ XTRAENV }} - {{ XTRAENV }}
{% enfor %} {% endfor %}
{% endif %} {% endif %}
- watch: - watch:
- file: /opt/so/conf/zeek/local.zeek - file: /opt/so/conf/zeek/local.zeek