auto_sd_docker/docker-compose.yml

26 lines
763 B
YAML

version: '3.4'
services:
auto-sd-docker:
container_name: auto-sd-docker
image: auto-sd-docker:latest
build:
context: .
restart: "no"
ports:
- "7860:7860"
volumes:
- ./:/repo # The path the repo will be cloned into if it does not already exist
# - "/path/to/models:/sd/models/Stable-diffusion/remote" # The path to existing models to use
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['0']
capabilities: [gpu]
healthcheck:
test: "wget --no-verbose --tries=1 --spider http://localhost:7860 || exit 1"
interval: 60s
timeout: 10s
retries: 5
start_period: 420s