docker-compose.a1111-test.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. # This is an overlay that spins up stable-diffusion-webui for integration testing
  2. # This is not designed to be used in production
  3. services:
  4. stable-diffusion-webui:
  5. # Not built for ARM64
  6. platform: linux/amd64
  7. image: ghcr.io/neggles/sd-webui-docker:latest
  8. restart: unless-stopped
  9. environment:
  10. CLI_ARGS: "--api --use-cpu all --precision full --no-half --skip-torch-cuda-test --ckpt /empty.pt --do-not-download-clip --disable-nan-check --disable-opt-split-attention"
  11. PYTHONUNBUFFERED: "1"
  12. TERM: "vt100"
  13. SD_WEBUI_VARIANT: "default"
  14. # Hack to get container working on Apple Silicon
  15. # Rosetta creates a conflict ${HOME}/.cache folder
  16. entrypoint: /bin/bash
  17. command:
  18. - -c
  19. - |
  20. export HOME=/root-home
  21. rm -rf $${HOME}/.cache
  22. /docker/entrypoint.sh python -u webui.py --listen --port $${WEBUI_PORT} --skip-version-check $${CLI_ARGS}
  23. volumes:
  24. - ./test/test_files/image_gen/sd-empty.pt:/empty.pt
  25. open-webui:
  26. environment:
  27. ENABLE_IMAGE_GENERATION: "true"
  28. AUTOMATIC1111_BASE_URL: http://stable-diffusion-webui:7860
  29. IMAGE_SIZE: "64x64"
  30. IMAGE_STEPS: "3"