Skip to content

Commit

Permalink
Use deploy resources instead of runtime nvidia
Browse files Browse the repository at this point in the history
  • Loading branch information
ramblingcoder authored Jul 4, 2023
1 parent 7a5a192 commit 42502c9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
services:
stable-diffusion-webui:
runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
image: emsi/stable-diffusion-webui
build:
context: ../
Expand Down

0 comments on commit 42502c9

Please sign in to comment.