Dockerfile to install Pagermon (server and client) in one go, without the need of installing all kinds of dependencies. It just works :)
The latest version of Pagermon is cloned from their Github when building the image.
git clone https://github.com/HarmvandenBrink/Pagermon-Docker.git
This script was created to decode FLEX, specifically the P2000 network in the Netherlands (169.65MHz), please change this settings before building the Docker. It can't be changed afterwards, you could however create multiple images for multiple decoders. In a later version I'll make this files configurable (and mounted)
rtl_fm -f 169.65M -M fm -s 22050 -p 0 - |
multimon-ng -a FLEX -t raw /dev/stdin |
node reader.js
docker build -t pagermondocker .
While building the Docker Image it'll create an unique API key and SessionKey for that specific image.
Please be aware to run the container with the correct RTL-SDR device attached. The code below should do the trick.
docker run -it -p 3000:3000 --name pagermon --privileged -d --restart always -v /dev/bus/usb:/dev/bus/usb pagermondocker
http://IP:3000 Username: admin Password: changeme
docker run --name mysql-server -p 3306:3306 -e MYSQL_ROOT_PASSWORD=pagermon -e MYSQL_DATABASE=pagermon -e MYSQL_ROOT_HOST=% -d mysql/mysql-server:latest
docker exec -i mysql-server mysql -uroot -ppagermon -e "ALTER USER root IDENTIFIED WITH mysql_native_password BY 'pagermon';"