added gpu stuff
This commit is contained in:
parent
379b9d4255
commit
187bbd262f
@ -179,6 +179,15 @@ services:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
start_period: {{ container.healthcheck.start_period }}
|
start_period: {{ container.healthcheck.start_period }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if container.deploy.resources.reservations.devices is defined %}
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
reservations:
|
||||||
|
devices:
|
||||||
|
- driver: nvidia
|
||||||
|
count: {{ container.deploy.resources.reservations.devices.driver.count | default("1") }}
|
||||||
|
capabilities: [gpu]
|
||||||
|
{% 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