docker-compose.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. version: '3.9'
  2. x-base_service: &base_service
  3. ports:
  4. - "7860:7860"
  5. volumes:
  6. - &v1 ./cache:/cache
  7. - &v2 ./output:/output
  8. deploy:
  9. resources:
  10. reservations:
  11. devices:
  12. - driver: nvidia
  13. device_ids: ['0']
  14. capabilities: [gpu]
  15. name: webui-docker
  16. services:
  17. download:
  18. build: ./services/download/
  19. profiles: ["download"]
  20. volumes:
  21. - *v1
  22. hlky:
  23. <<: *base_service
  24. profiles: ["hlky"]
  25. build: ./services/hlky/
  26. environment:
  27. - CLI_ARGS=--optimized-turbo
  28. automatic1111: &automatic
  29. <<: *base_service
  30. profiles: ["auto"]
  31. build: ./services/AUTOMATIC1111
  32. volumes:
  33. - *v1
  34. - *v2
  35. - ./services/AUTOMATIC1111/config.json:/stable-diffusion-webui/config.json
  36. environment:
  37. - CLI_ARGS=--medvram --opt-split-attention
  38. automatic1111-cpu:
  39. <<: *automatic
  40. profiles: ["auto-cpu"]
  41. deploy: {}
  42. environment:
  43. - CLI_ARGS=--no-half --precision full
  44. lstein:
  45. <<: *base_service
  46. profiles: ["lstein"]
  47. build: ./services/lstein/