stable-diffusion-webui-docker/docker-compose.yml
2022-08-30 18:56:46 +02:00

22 lines
447 B
YAML

version: '3.9'
services:
model:
build: ./build/
restart: on-failure
ports:
- "7860:7860"
volumes:
- ./cache:/cache
- ./output:/output
- ./models:/models
environment:
- CLI_ARGS=--gfpgan-gpu 0 --esrgan-cpu --optimized-turbo
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['0']
capabilities: [gpu]