Unprivileged docker image that wraps andrewjfreyer/monitor, with support on running on arm platforms like a raspberry pi.
from docker hub
$ docker pull dotwee/bluetooth-presence-monitor:latest
from github packages
$ docker pull ghcr.io/dotwee/bluetooth-presence-monitor:latest
linux/arm/v6
linux/arm/v7
linux/arm64
linux/amd64
$ docker run \
--name bluetooth-presence-monitor \
-v "${PWD}":/config \
--net=host \
--restart always \
--cap-add NET_ADMIN \
dotwee/bluetooth-presence-monitor:latest
using docker-compose:
version: '2.2'
services:
bluetooth-presence-monitor:
image: dotwee/bluetooth-presence-monitor:latest
container_name: bluetooth-presence-monitor
volumes:
- ./config:/config:rw
- /sys/fs/cgroup:/sys/fs/cgroup:ro
# optionally bind your host's time config readonly
# or use the TZ environment variable
#- /etc/timezone:/etc/timezone:ro
#- /etc/localtime:/etc/localtime:ro
network_mode: host # bluetooth
restart: always
cap_add:
- NET_ADMIN
# optionally set your timezone (UTC is used by default)
# environment:
# - TZ="Europe/Berlin"