2021-10-07 02:50:50 +02:00
|
|
|
version: "3.2"
|
2021-06-28 22:35:15 +02:00
|
|
|
services:
|
|
|
|
koboldai:
|
|
|
|
build: .
|
|
|
|
environment:
|
|
|
|
- DISPLAY=${DISPLAY}
|
|
|
|
network_mode: "host"
|
|
|
|
volumes:
|
|
|
|
- /tmp/.X11-unix:/tmp/.X11-unix
|
|
|
|
- ../:/content/
|
|
|
|
- $HOME/.Xauthority:/home/micromamba/.Xauthority:rw
|
|
|
|
devices:
|
|
|
|
- /dev/dri
|
2021-10-07 02:50:50 +02:00
|
|
|
- /dev/nvidia0:/dev/nvidia0
|
|
|
|
- /dev/nvidiactl:/dev/nvidiactl
|
|
|
|
- /dev/nvidia-uvm:/dev/nvidia-uvm
|
|
|
|
deploy:
|
|
|
|
resources:
|
|
|
|
reservations:
|
|
|
|
devices:
|
|
|
|
- driver: nvidia
|
|
|
|
device_ids: ['0']
|
|
|
|
capabilities: [gpu]
|
2021-06-28 22:35:15 +02:00
|
|
|
group_add:
|
|
|
|
- video
|