xtts-api-server icon indicating copy to clipboard operation
xtts-api-server copied to clipboard

docker file and device number

Open rhamblen opened this issue 1 year ago • 0 comments

version: '3.4'

services: xttsapiserver: image: xttsapiserver env_file: .env build: context: .. dockerfile: ./docker/Dockerfile ports: - "${HOST_PORT:-8020}:${CONTAINER_PORT:-8020}" volumes: - ./xtts-server:/xtts-server deploy: resources: reservations: devices: - driver: nvidia device_ids: ['0'] capabilities: [gpu]

can you make device_ids: a variable as I need to install on device_id 1 not 0.

you would need to add to the .env file and modify the line to something like.... device_ids: $[DEV_ID:-0] which I know isnt correct!!!

rhamblen avatar Jun 10 '24 19:06 rhamblen