35 lines
754 B
YAML
35 lines
754 B
YAML
services:
|
|
|
|
base-app:
|
|
restart: no
|
|
stdin_open: true
|
|
tty: true
|
|
shm_size: '12gb'
|
|
volumes:
|
|
- type: bind
|
|
source: ./data
|
|
target: /workspace/data
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
count: all
|
|
capabilities: [ gpu ]
|
|
|
|
win-gui-app:
|
|
extends:
|
|
service: base-app
|
|
volumes:
|
|
- type: bind
|
|
source: /run/desktop/mnt/host/wslg/.X11-unix
|
|
target: /tmp/.X11-unix
|
|
- type: bind
|
|
source: /run/desktop/mnt/host/wslg
|
|
target: /mnt/wslg
|
|
environment:
|
|
DISPLAY: :0
|
|
WAYLAND_DISPLAY: wayland-0
|
|
XDG_RUNTIME_DIR: /mnt/wslg/runtime-dir
|
|
PULSE_SERVER: /mnt/wslg/PulseServer
|