forked from NetrisTV/ws-scrcpy
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (29 loc) · 818 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (29 loc) · 818 Bytes
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
services:
ws-scrcpy:
build:
context: .
dockerfile: Dockerfile
image: ws-scrcpy:latest
container_name: ws-scrcpy
restart: unless-stopped
ports:
- "8233:8000"
# Uncomment for HTTPS
# - "8443:8443"
volumes:
# Config file (optional)
- ./config.yaml:/app/config.yaml:ro
# USB device access for ADB
- /dev/bus/usb:/dev/bus/usb
# udev for hotplug detection
- /run/udev:/run/udev:ro
# Persist ADB keys between restarts
- ./adb-keys:/root/.android
# Grant access to USB devices (major 189) - safer than privileged:true
device_cgroup_rules:
- 'c 189:* rwm'
environment:
- NODE_ENV=production
# Run ADB server inside container on startup
command: >
sh -c "adb start-server && npm start"