From c0e45b0dce92595645010804ffb2a70b35b7774f Mon Sep 17 00:00:00 2001 From: city-unit <140349364+city-unit@users.noreply.github.com> Date: Wed, 27 Dec 2023 23:38:35 -0500 Subject: [PATCH] Make compose marginally better --- docker-compose.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0f6e281a..0f374e39 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,9 +7,15 @@ services: INSTALL_FSCHAT: "true" # Set this to "true" or "false" as needed ports: - "5000:5000" - runtime: nvidia environment: - NAME=TabbyAPI - NVIDIA_VISIBLE_DEVICES=all volumes: - - /mnt/nvme/models:/usr/src/app/models + - ./models:/usr/src/app/models + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: all + capabilities: [gpu]