use port_bindings from docker defaults in docker states

This commit is contained in:
m0duspwnens
2023-01-13 10:15:10 -05:00
parent a69b0951d3
commit 6033e9a0de
17 changed files with 56 additions and 26 deletions
+3 -1
View File
@@ -54,7 +54,9 @@ so-elastic-fleet:
- extra_hosts:
- {{ GLOBALS.hostname }}:{{ GLOBALS.node_ip }}
- port_bindings:
- 0.0.0.0:8220:8220
{% for BINDING in DOCKER.containers['so-elastic-fleet'].port_bindings %}
- {{ BINDING }}
{% endfor %}
- binds:
- /opt/so/conf/elastic-fleet/certs:/etc/pki:ro
- /opt/so/conf/elastic-fleet/state:/usr/share/elastic-agent/state:rw