version: '3.4' services: auto-sd-docker: container_name: auto-sd-docker image: git.exile.place/derek/auto-sd-docker:latest 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: 300s