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

View File

@@ -106,8 +106,9 @@ so-nginx:
{% endif %}
- cap_add: NET_BIND_SERVICE
- port_bindings:
- 80:80
- 443:443
{% for BINDING in DOCKER.containers['so-nginx'].port_bindings %}
- {{ BINDING }}
{% endfor %}
- watch:
- file: nginxconf
- file: nginxconfdir