-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
41 lines (37 loc) · 976 Bytes
/
Copy pathcompose.yaml
File metadata and controls
41 lines (37 loc) · 976 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
30
31
32
33
34
35
36
37
38
39
40
41
name: t-mon
services:
ble-monitor:
build: .
env_file:
- .env
# environment:
# SCANNING_MODE: active
network_mode: host
init: true
stop_grace_period: 15s
# Disable AppArmor confinement for raw D-Bus socket access
security_opt:
- apparmor:unconfined
# privileged: true
cap_add:
- NET_ADMIN
- NET_RAW
volumes:
- /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
- monitor_data:/app/data
restart: unless-stopped
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
environment:
- GF_INSTALL_PLUGINS=frser-sqlite-datasource
- GF_SECURITY_ADMIN_PASSWORD=admin # Change on first login
volumes:
# Mount the SAME data directory read-only into Grafana
- monitor_data:/var/lib/grafana/sqlite_data:ro
- grafana-storage:/var/lib/grafana
restart: unless-stopped
volumes:
monitor_data:
grafana-storage: