added gpu stuff

This commit is contained in:
IronicBadger 2024-03-17 18:45:25 -07:00
parent 379b9d4255
commit 187bbd262f

View File

@ -179,6 +179,15 @@ services:
{% endif %}
start_period: {{ container.healthcheck.start_period }}
{% 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 %}
restart: {{ container.restart }}
{% endif %}