xtts-api-server
xtts-api-server copied to clipboard
docker file and device number
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!!!