Skip to content

HarmvandenBrink/Pagermon-Docker

Repository files navigation

Pagermon-Docker

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.

Clone the repository

git clone https://github.com/HarmvandenBrink/Pagermon-Docker.git

Changing reader.sh

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

Building the Docker

docker build -t pagermondocker .

While building the Docker Image it'll create an unique API key and SessionKey for that specific image.

Running the Docker

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

The interface and configuration

http://IP:3000 Username: admin Password: changeme

MySQL (additional, change password!)

docker run --name mysql-server -p 3306:3306 -d --restart always -e MYSQL_ROOT_PASSWORD=pagermon -e MYSQL_DATABASE=pagermon -e MYSQL_ROOT_HOST=% -d mysql/mysql-server:latest

After a minute or two run:

docker exec -i mysql-server mysql -uroot -ppagermon -e "ALTER USER root IDENTIFIED WITH mysql_native_password BY 'pagermon';"

In Pagermon change the database to MySQL.

User: root
Password: whateveryouset
Database: pagermon

About

Dockerfile to install Pagermon in one go (with a few settings)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors