Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker file and device number #79

Open
rhamblen opened this issue Jun 10, 2024 · 0 comments
Open

docker file and device number #79

rhamblen opened this issue Jun 10, 2024 · 0 comments

Comments

@rhamblen
Copy link

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!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant