-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (58 loc) · 1.46 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (58 loc) · 1.46 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
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
slimevr-init:
image: busybox:1.36
command: ["sh", "-c", "mkdir -p /gui_mount /config && chown -R 1000:1000 /gui_mount /config"]
restart: "no"
network_mode: none
volumes:
- slimevr-config:/config
- slimevr-gui:/gui_mount
slimevr:
depends_on:
slimevr-init:
condition: service_completed_successfully
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
- ${SERIAL_GID:-984}
volumes:
- slimevr-config:/home/ubuntu/.config/dev.slimevr.SlimeVR
- slimevr-gui:/gui_mount
- /dev:/dev
- /run/udev:/run/udev:ro
healthcheck:
test: ["CMD-SHELL", "pgrep -f 'java .*slimevr.jar' > /dev/null"]
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://127.0.0.1:${WEBGUI_PORT:-8080}/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 5s
volumes:
slimevr-config:
slimevr-gui: