commit
9846f2f03a
@ -1,4 +1,4 @@
|
|||||||
# {{ ansible_managed }}
|
{{ ansible_managed | comment }}
|
||||||
---
|
---
|
||||||
version: "{{ compose_schema_version | default('2') }}"
|
version: "{{ compose_schema_version | default('2') }}"
|
||||||
services:
|
services:
|
||||||
@ -23,13 +23,13 @@ services:
|
|||||||
privileged: {{ container.privileged }}
|
privileged: {{ container.privileged }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if container.cap_add is defined %}
|
{% if container.cap_add is defined %}
|
||||||
cap_add:
|
cap_add:
|
||||||
{% for cap in container.cap_add %}
|
{% for cap in container.cap_add %}
|
||||||
- {{ cap }}
|
- {{ cap }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if container.group_add is defined %}
|
{% if container.group_add is defined %}
|
||||||
group_add:
|
group_add:
|
||||||
{% for group in container.group_add %}
|
{% for group in container.group_add %}
|
||||||
- {{ group }}
|
- {{ group }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@ -154,6 +154,9 @@ services:
|
|||||||
- {{ envfile }}
|
- {{ envfile }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if container.user is defined %}
|
||||||
|
user: {{ container.user }}
|
||||||
|
{% endif %}
|
||||||
{% if container.restart is defined %}
|
{% if container.restart is defined %}
|
||||||
restart: {{ container.restart }}
|
restart: {{ container.restart }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user