-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (46 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
48 lines (46 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
services:
slimevr:
build:
context: ./slimevr
args:
SLIMEVR_VERSION: ${SLIMEVR_VERSION:-latest}
container_name: slimevr
restart: unless-stopped
environment:
- LIBGL_ALWAYS_INDIRECT=0
network_mode: host
privileged: true
devices:
- /dev/dri:/dev/dri
group_add:
- dialout
- video
volumes:
- slimevr-config:/root/.config/dev.slimevr.SlimeVR
- slimevr-gui:/gui_mount
- /dev:/dev
- /run/udev:/run/udev:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6969"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
nginx:
build: ./nginx
container_name: slimevr_gui
restart: unless-stopped
environment:
WEBGUI_PORT: ${WEBGUI_PORT:-8080}
network_mode: host
volumes:
- slimevr-gui:/usr/share/nginx/html:ro
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:${WEBGUI_PORT:-8080}/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 5s
volumes:
slimevr-config:
slimevr-gui: