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"
|
2023-02-16 11:37:58 +01:00
|
|
|
security_opt:
|
|
|
|
- label:disable
|
2021-06-28 22:35:15 +02:00
|
|
|
volumes:
|
|
|
|
- /tmp/.X11-unix:/tmp/.X11-unix
|
2022-01-12 04:30:40 +01:00
|
|
|
- /etc/protocols:/etc/protocols:ro
|
2021-06-28 22:35:15 +02:00
|
|
|
- ../:/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
|