We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab48dcd commit 2f9e0e6Copy full SHA for 2f9e0e6
docker/compose/ng.sls
@@ -126,6 +126,17 @@ include:
126
- restart_policy: {{ policy[0] }}:{{ policy[-1] }}
127
{%- endif %}
128
129
+ {%- if 'devices' in container %}
130
+ - devices:
131
+ {%- for device in container.devices %}
132
+ {%- set mapping = device.rsplit(':', 1) %}
133
+ {%- if mapping|length > 1 %}
134
+ - "{{ mapping[0] }}:{{ mapping[-1] }}"
135
+ {%- else %}
136
+ - "{{ mapping[0] }}"
137
+ {%- endif %}
138
+ {%- endfor %}
139
140
- require:
141
- docker_image: {{ formula }}-compose-ng-{{ id }}-present
142
{%- if required_containers is defined %}
0 commit comments