diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index 1643d79..6175390 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -134,6 +134,16 @@ services: - {{ dns_entry }} {% endfor %} {% endif %} +{% if container.logging.driver is defined %} + logging: + driver: {{ container.logging.driver }} +{% if container.logging.options is defined %} + options: +{% for option in container.logging.options %} + {{ option }}: {{ container.logging.options[option] }} +{% endfor %} +{% endif %} +{% endif %} {% if container.env_file is defined %} env_file: {% for envfile in container.env_file %}