Skip to content

Instantly share code, notes, and snippets.

@frakw
Created October 7, 2024 09:53
Show Gist options
  • Save frakw/19d0bdd98c8468fdac000450f463c405 to your computer and use it in GitHub Desktop.
Save frakw/19d0bdd98c8468fdac000450f463c405 to your computer and use it in GitHub Desktop.
RegionDrag docker compose file
services:
region_drag:
stdin_open: true
tty: true
devices:
- /dev/dri
group_add:
- video
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ./:/src
ports:
- "7860:7860"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities:
- gpu
environment:
- DISPLAY=$DISPLAY
- QT_X11_NO_MITSHM=1
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
container_name: region-drag-container
build: .
image: frakw/region-drag
command: /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment