Skip to content

Commit 23698da

Browse files
committed
feat(docker): add cross-platform compose with linux usb hotplug override
1 parent 4d46597 commit 23698da

4 files changed

Lines changed: 31 additions & 27 deletions

File tree

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
SLIMEVR_VERSION=0.16.2
1+
SLIMEVR_VERSION=19.0.0-rc.1
22
WEBGUI_PORT=8080

docker-compose.linux.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
services:
2+
slimevr:
3+
network_mode: host
4+
privileged: true
5+
devices:
6+
- /dev/dri:/dev/dri
7+
ports: []
8+
group_add:
9+
- dialout
10+
- video
11+
volumes:
12+
- /dev:/dev
13+
- /run/udev:/run/udev:ro
14+
15+
nginx:
16+
network_mode: host
17+
ports: []

docker-compose.yml

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,19 @@ services:
55
args:
66
SLIMEVR_VERSION: ${SLIMEVR_VERSION}
77
container_name: slimevr
8-
network_mode: host
98
restart: unless-stopped
10-
privileged: true
11-
devices:
12-
- /dev/bus/usb:/dev/bus/usb # Mount every USB device
13-
- /dev/ttyUSB0:/dev/ttyUSB0 # USB-Serial based on ch34x/pl2303
14-
- /dev/ttyACM0:/dev/ttyACM0 # CDC-ACM (ESP32-S3, nRF52, etc.)
15-
- /dev/hidraw0:/dev/hidraw0 # Dongles HID (opcional)
16-
- /dev/dri:/dev/dri # GPU for WebGL
179
environment:
1810
- LIBGL_ALWAYS_INDIRECT=0
19-
# ports:
20-
# - "6969:6969/udp" # Tracker data (SlimeVR default UDP port)
21-
# - "21110:21110" # WebSocket VR Bridge for integrations
22-
# - "8266:8266" # OTA firmware update
23-
# - "9000:9000" # OSC output (shared by VRC and router)
24-
# - "9001:9001" # VRC OSC input (VRChat tracking)
25-
# - "9002:9002" # OSC Router input (for rerouting OSC)
26-
# - "39539:39539" # VMC output (used by VSeeFace, etc.)
27-
# - "39540:39540" # VMC input
28-
# - "4768:4768/udp" # Tracker discovery / legacy LAN detection
29-
group_add:
30-
- dialout
31-
- video
11+
ports:
12+
- "6969:6969/udp" # Tracker data (SlimeVR default UDP port)
13+
- "21110:21110" # WebSocket VR Bridge for integrations
14+
- "8266:8266" # OTA firmware update
15+
- "9000:9000" # OSC output (shared by VRC and router)
16+
- "9001:9001" # VRC OSC input (VRChat tracking)
17+
- "9002:9002" # OSC Router input (for rerouting OSC)
18+
- "39539:39539" # VMC output (used by VSeeFace, etc.)
19+
- "39540:39540" # VMC input
20+
- "4768:4768/udp" # Tracker discovery / legacy LAN detection
3221
volumes:
3322
- slimevr-config:/root/.config/dev.slimevr.SlimeVR
3423
- slimevr-gui:/gui_mount
@@ -37,11 +26,10 @@ services:
3726
build: ./nginx
3827
container_name: slimevr_gui
3928
restart: unless-stopped
40-
network_mode: host
4129
environment:
4230
WEBGUI_PORT: ${WEBGUI_PORT}
43-
# ports:
44-
# - "${WEBGUI_PORT}:${WEBGUI_PORT}"
31+
ports:
32+
- "${WEBGUI_PORT}:${WEBGUI_PORT}"
4533
volumes:
4634
- slimevr-gui:/usr/share/nginx/html:ro
4735

slimevr/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ RUN apt-get update && \
1717

1818
VOLUME ["/gui_mount"]
1919

20-
CMD cp -r /gui/* /gui_mount && java -XX:ActiveProcessorCount=$(nproc) -jar slimevr.jar run
21-
20+
CMD cp -r /gui/* /gui_mount && java -XX:ActiveProcessorCount=$(nproc) -jar slimevr.jar run --no-gui

0 commit comments

Comments
 (0)