-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
68 lines (53 loc) · 1.51 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
68 lines (53 loc) · 1.51 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
62
63
64
65
66
67
68
version: "3.8"
services:
tapauth-dev:
build:
context: .
dockerfile: Dockerfile.dev
container_name: tapauth-dev
hostname: tapauth-dev
# Privileged mode required for:
# - Bluetooth access
# - PAM testing
# - Network configuration
privileged: true
# Network configuration
network_mode: "host"
# Use host IPC namespace to fix X11 shared memory issues
ipc: "host"
# X11 forwarding for GUI
environment:
- DISPLAY=${DISPLAY:-:0}
- XAUTHORITY=/tmp/.Xauthority
- XDG_RUNTIME_DIR=/tmp/runtime-root
volumes:
# X11 socket for GUI
- /tmp/.X11-unix:/tmp/.X11-unix:rw
# X11 authentication
- ${XAUTHORITY:-$HOME/.Xauthority}:/tmp/.Xauthority:ro
# Bluetooth device access (read-only to monitor hardware)
- /sys/class/bluetooth:/sys/class/bluetooth:ro
# Source code (for live development)
- ./:/tapauth:rw
# Preserve Rust build cache
- tapauth-cargo-cache:/root/.cargo
- tapauth-target-cache:/tapauth/target
# Preserve configuration between restarts
- tapauth-config:/etc/tapauth
# Device access for Bluetooth
devices:
# Bluetooth HCI devices (if available)
- /dev/bus/usb:/dev/bus/usb
# Keep container running
stdin_open: true
tty: true
# Restart policy
restart: unless-stopped
volumes:
# Named volumes for caching
tapauth-cargo-cache:
driver: local
tapauth-target-cache:
driver: local
tapauth-config:
driver: local