Thanks for sharing. I'm not sure I'd run this in a Docker instance on it's own. Also, I submitted a pull request here https://github.com/igomez10/speedInspectorRPI/pull/1 as it should be noted that on a Raspberry Pi outside of the Raspberry Pi 3 B+ you will max out at 100mbps. On the 3 B+ despite the gigabit adapter you'll max out at 300mbps.
I use a Speedtest monitor via Home Assistant which I run on a Raspberry Pi Model 3 along with the rest of my home automation setup. Check out Home Assistant at https://home-assistant.io.
Thannks for taking the time of reading it and submitting improvements, I checked Home Assistant and it looks amazing.
Also, thanks for noting on the speed limits, I totatlly forgot about RPI adapter limitations. I was having slow speeds (~2-4mbps) so +100mbps didnt seemed that bad in the beginning.
I have integrated this into my Home-Assistant setup. The speedtest runs every 30 minutes and logs to an influx-database. I also run a pingtest every minute, logging to the same database. Helped me identify some strage behaviour from my router in one case.
I use a Speedtest monitor via Home Assistant which I run on a Raspberry Pi Model 3 along with the rest of my home automation setup. Check out Home Assistant at https://home-assistant.io.