mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-20 07:53:06 +01:00
use port_bindings from docker defaults in docker states
This commit is contained in:
@@ -34,7 +34,9 @@ so-elastic-fleet-package-registry:
|
|||||||
- extra_hosts:
|
- extra_hosts:
|
||||||
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
|
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:8080:8080
|
{% for BINDING in DOCKER.containers['so-elastic-fleet-package-registry'].port_bindings %}
|
||||||
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
append_so-elastic-fleet-package-registry_so-status.conf:
|
append_so-elastic-fleet-package-registry_so-status.conf:
|
||||||
file.append:
|
file.append:
|
||||||
|
|||||||
@@ -54,7 +54,9 @@ so-elastic-fleet:
|
|||||||
- extra_hosts:
|
- extra_hosts:
|
||||||
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
|
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:8220:8220
|
{% for BINDING in DOCKER.containers['so-elastic-fleet'].port_bindings %}
|
||||||
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
- binds:
|
- binds:
|
||||||
- /opt/so/conf/elastic-fleet/certs:/etc/pki:ro
|
- /opt/so/conf/elastic-fleet/certs:/etc/pki:ro
|
||||||
- /opt/so/conf/elastic-fleet/state:/usr/share/elastic-agent/state:rw
|
- /opt/so/conf/elastic-fleet/state:/usr/share/elastic-agent/state:rw
|
||||||
|
|||||||
@@ -304,8 +304,9 @@ so-elasticsearch:
|
|||||||
- nofile=65536:65536
|
- nofile=65536:65536
|
||||||
- nproc=4096
|
- nproc=4096
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:9200:9200
|
{% for BINDING in DOCKER.containers['so-elasticsearch'].port_bindings %}
|
||||||
- 0.0.0.0:9300:9300
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
- binds:
|
- binds:
|
||||||
- /opt/so/conf/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
|
- /opt/so/conf/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
|
||||||
- /opt/so/conf/elasticsearch/log4j2.properties:/usr/share/elasticsearch/config/log4j2.properties:ro
|
- /opt/so/conf/elasticsearch/log4j2.properties:/usr/share/elasticsearch/config/log4j2.properties:ro
|
||||||
|
|||||||
@@ -116,9 +116,9 @@ so-filebeat:
|
|||||||
- /etc/ssl/certs/intca.crt:/usr/share/filebeat/intraca.crt:ro
|
- /etc/ssl/certs/intca.crt:/usr/share/filebeat/intraca.crt:ro
|
||||||
- /opt/so/log:/logs:ro
|
- /opt/so/log:/logs:ro
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:514:514/udp
|
{% for BINDING in DOCKER.containers['so-filebeat'].port_bindings %}
|
||||||
- 0.0.0.0:514:514/tcp
|
- {{ BINDING }}
|
||||||
- 0.0.0.0:5066:5066/tcp
|
{% endfor %}
|
||||||
{% for module in MODULESMERGED.modules.keys() %}
|
{% for module in MODULESMERGED.modules.keys() %}
|
||||||
{% for submodule in MODULESMERGED.modules[module] %}
|
{% for submodule in MODULESMERGED.modules[module] %}
|
||||||
{% if MODULESMERGED.modules[module][submodule].enabled and MODULESMERGED.modules[module][submodule]["var.syslog_port"] is defined %}
|
{% if MODULESMERGED.modules[module][submodule].enabled and MODULESMERGED.modules[module][submodule]["var.syslog_port"] is defined %}
|
||||||
|
|||||||
@@ -138,7 +138,9 @@ so-grafana:
|
|||||||
- environment:
|
- environment:
|
||||||
- GF_SECURITY_ADMIN_PASSWORD={{ ADMINPASS }}
|
- GF_SECURITY_ADMIN_PASSWORD={{ ADMINPASS }}
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:3000:3000
|
{% for BINDING in DOCKER.containers['so-grafana'].port_bindings %}
|
||||||
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
- watch:
|
- watch:
|
||||||
- file: /opt/so/conf/grafana/*
|
- file: /opt/so/conf/grafana/*
|
||||||
- require:
|
- require:
|
||||||
|
|||||||
@@ -60,7 +60,9 @@ so-influxdb:
|
|||||||
- /etc/pki/influxdb.crt:/etc/ssl/influxdb.crt:ro
|
- /etc/pki/influxdb.crt:/etc/ssl/influxdb.crt:ro
|
||||||
- /etc/pki/influxdb.key:/etc/ssl/influxdb.key:ro
|
- /etc/pki/influxdb.key:/etc/ssl/influxdb.key:ro
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:8086:8086
|
{% for BINDING in DOCKER.containers['so-influxdb'].port_bindings %}
|
||||||
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
- watch:
|
- watch:
|
||||||
- file: influxdbconf
|
- file: influxdbconf
|
||||||
- require:
|
- require:
|
||||||
|
|||||||
@@ -95,7 +95,9 @@ so-kibana:
|
|||||||
- /opt/so/conf/kibana/customdashboards:/usr/share/kibana/custdashboards:ro
|
- /opt/so/conf/kibana/customdashboards:/usr/share/kibana/custdashboards:ro
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:5601:5601
|
{% for BINDING in DOCKER.containers['so-kibana'].port_bindings %}
|
||||||
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
- watch:
|
- watch:
|
||||||
- file: kibanaconfig
|
- file: kibanaconfig
|
||||||
|
|
||||||
|
|||||||
@@ -77,8 +77,9 @@ so-kratos:
|
|||||||
- /opt/so/log/kratos/:/kratos-log:rw
|
- /opt/so/log/kratos/:/kratos-log:rw
|
||||||
- /nsm/kratos/db:/kratos-data:rw
|
- /nsm/kratos/db:/kratos-data:rw
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:4433:4433
|
{% for BINDING in DOCKER.containers['so-kratos'].port_bindings %}
|
||||||
- 0.0.0.0:4434:4434
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
- restart_policy: unless-stopped
|
- restart_policy: unless-stopped
|
||||||
- watch:
|
- watch:
|
||||||
- file: kratosschema
|
- file: kratosschema
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ so-logstash:
|
|||||||
- environment:
|
- environment:
|
||||||
- LS_JAVA_OPTS=-Xms{{ lsheap }} -Xmx{{ lsheap }}
|
- LS_JAVA_OPTS=-Xms{{ lsheap }} -Xmx{{ lsheap }}
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
{% for BINDING in DOCKER_OPTIONS.port_bindings %}
|
{% for BINDING in DOCKER.containers['so-logstash'].port_bindings %}
|
||||||
- {{ BINDING }}
|
- {{ BINDING }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
- binds:
|
- binds:
|
||||||
|
|||||||
@@ -88,7 +88,9 @@ so-mysql:
|
|||||||
- sosbridge:
|
- sosbridge:
|
||||||
- ipv4_address: {{ DOCKER.containers['so-mysql'].ip }}
|
- ipv4_address: {{ DOCKER.containers['so-mysql'].ip }}
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:3306:3306
|
{% for BINDING in DOCKER.containers['so-mysql'].port_bindings %}
|
||||||
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
- environment:
|
- environment:
|
||||||
- MYSQL_ROOT_HOST={{ GLOBALS.manager_ip }}
|
- MYSQL_ROOT_HOST={{ GLOBALS.manager_ip }}
|
||||||
- MYSQL_ROOT_PASSWORD=/etc/mypass
|
- MYSQL_ROOT_PASSWORD=/etc/mypass
|
||||||
|
|||||||
@@ -106,8 +106,9 @@ so-nginx:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
- cap_add: NET_BIND_SERVICE
|
- cap_add: NET_BIND_SERVICE
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 80:80
|
{% for BINDING in DOCKER.containers['so-nginx'].port_bindings %}
|
||||||
- 443:443
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
- watch:
|
- watch:
|
||||||
- file: nginxconf
|
- file: nginxconf
|
||||||
- file: nginxconfdir
|
- file: nginxconfdir
|
||||||
|
|||||||
@@ -91,7 +91,9 @@ so-playbook:
|
|||||||
- REDMINE_DB_USERNAME=playbookdbuser
|
- REDMINE_DB_USERNAME=playbookdbuser
|
||||||
- REDMINE_DB_PASSWORD={{ PLAYBOOKPASS }}
|
- REDMINE_DB_PASSWORD={{ PLAYBOOKPASS }}
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:3200:3000
|
{% for BINDING in DOCKER.containers['so-playbook'].port_bindings %}
|
||||||
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
append_so-playbook_so-status.conf:
|
append_so-playbook_so-status.conf:
|
||||||
file.append:
|
file.append:
|
||||||
|
|||||||
@@ -50,8 +50,9 @@ so-redis:
|
|||||||
- sosbridge:
|
- sosbridge:
|
||||||
- ipv4_address: {{ DOCKER.containers['so-redis'].ip }}
|
- ipv4_address: {{ DOCKER.containers['so-redis'].ip }}
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:6379:6379
|
{% for BINDING in DOCKER.containers['so-redis'].port_bindings %}
|
||||||
- 0.0.0.0:9696:9696
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
- binds:
|
- binds:
|
||||||
- /opt/so/log/redis:/var/log/redis:rw
|
- /opt/so/log/redis:/var/log/redis:rw
|
||||||
- /opt/so/conf/redis/etc/redis.conf:/usr/local/etc/redis/redis.conf:ro
|
- /opt/so/conf/redis/etc/redis.conf:/usr/local/etc/redis/redis.conf:ro
|
||||||
|
|||||||
@@ -43,7 +43,9 @@ so-dockerregistry:
|
|||||||
- ipv4_address: {{ DOCKER.containers['so-dockerregistry'].ip }}
|
- ipv4_address: {{ DOCKER.containers['so-dockerregistry'].ip }}
|
||||||
- restart_policy: always
|
- restart_policy: always
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:5000:5000
|
{% for BINDING in DOCKER.containers['so-dockerregistry'].port_bindings %}
|
||||||
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
- binds:
|
- binds:
|
||||||
- /opt/so/conf/docker-registry/etc/config.yml:/etc/docker/registry/config.yml:ro
|
- /opt/so/conf/docker-registry/etc/config.yml:/etc/docker/registry/config.yml:ro
|
||||||
- /opt/so/conf/docker-registry:/var/lib/registry:rw
|
- /opt/so/conf/docker-registry:/var/lib/registry:rw
|
||||||
|
|||||||
@@ -117,7 +117,9 @@ so-soc:
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:9822:9822
|
{% for BINDING in DOCKER.containers['so-soc'].port_bindings %}
|
||||||
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
- watch:
|
- watch:
|
||||||
- file: /opt/so/conf/soc/*
|
- file: /opt/so/conf/soc/*
|
||||||
- require:
|
- require:
|
||||||
|
|||||||
@@ -76,7 +76,9 @@ so-soctopus:
|
|||||||
- /nsm/repo/rules/sigma:/soctopus/sigma
|
- /nsm/repo/rules/sigma:/soctopus/sigma
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:7000:7000
|
{% for BINDING in DOCKER.containers['so-soctopus'].port_bindings %}
|
||||||
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
- extra_hosts:
|
- extra_hosts:
|
||||||
- {{GLOBALS.url_base}}:{{GLOBALS.manager_ip}}
|
- {{GLOBALS.url_base}}:{{GLOBALS.manager_ip}}
|
||||||
- require:
|
- require:
|
||||||
|
|||||||
@@ -173,7 +173,9 @@ strelka_coordinator:
|
|||||||
- ipv4_address: {{ DOCKER.containers['so-strelka-coordinator'].ip }}
|
- ipv4_address: {{ DOCKER.containers['so-strelka-coordinator'].ip }}
|
||||||
- entrypoint: redis-server --save "" --appendonly no
|
- entrypoint: redis-server --save "" --appendonly no
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:6380:6379
|
{% for BINDING in DOCKER.containers['so-strelka-cordinator'].port_bindings %}
|
||||||
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
append_so-strelka-coordinator_so-status.conf:
|
append_so-strelka-coordinator_so-status.conf:
|
||||||
file.append:
|
file.append:
|
||||||
@@ -189,7 +191,9 @@ strelka_gatekeeper:
|
|||||||
- ipv4_address: {{ DOCKER.containers['so-strelka-gatekeeper'].ip }}
|
- ipv4_address: {{ DOCKER.containers['so-strelka-gatekeeper'].ip }}
|
||||||
- entrypoint: redis-server --save "" --appendonly no --maxmemory-policy allkeys-lru
|
- entrypoint: redis-server --save "" --appendonly no --maxmemory-policy allkeys-lru
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:6381:6379
|
{% for BINDING in DOCKER.containers['so-strelka-gatekeeper'].port_bindings %}
|
||||||
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
append_so-strelka-gatekeeper_so-status.conf:
|
append_so-strelka-gatekeeper_so-status.conf:
|
||||||
file.append:
|
file.append:
|
||||||
@@ -209,7 +213,9 @@ strelka_frontend:
|
|||||||
- ipv4_address: {{ DOCKER.containers['so-strelka-frontend'].ip }}
|
- ipv4_address: {{ DOCKER.containers['so-strelka-frontend'].ip }}
|
||||||
- command: strelka-frontend
|
- command: strelka-frontend
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:57314:57314
|
{% for BINDING in DOCKER.containers['so-strelka-frontend'].port_bindings %}
|
||||||
|
- {{ BINDING }}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
append_so-strelka-frontend_so-status.conf:
|
append_so-strelka-frontend_so-status.conf:
|
||||||
file.append:
|
file.append:
|
||||||
|
|||||||
Reference in New Issue
Block a user