Skip to content

Commit 96a0ba7

Browse files
committed
fix(compose-ng): add support for setting container devices
1 parent ab48dcd commit 96a0ba7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docker/compose/ng.sls

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ include:
126126
- restart_policy: {{ policy[0] }}:{{ policy[-1] }}
127127
{%- endif %}
128128
{%- endif %}
129+
{%- if 'devices' in container %}
130+
- devices:
131+
{%- for device in container.devices %}
132+
- "{{ device }}"
133+
{%- endfor %}
134+
{%- endif %}
129135
- require:
130136
- docker_image: {{ formula }}-compose-ng-{{ id }}-present
131137
{%- if required_containers is defined %}

0 commit comments

Comments
 (0)