Info Security Memo
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org

Build Confidence

Focusing on Information Security 

Info Security Notes

[5 Mins Docker] Deploy A Self-Hosted Speedtest App with Test History Results - Speedtest-x

3/6/2023

0 Comments

 
[5 Mins Docker] Deploy A Self-Hosted Speedtest App with Test History Results - Speedtest-x

This Github Speedtest-x project is an extension of LibreSpeed, which is a pretty lightweight speedtest tool. Speedtest-x project uses file datebase to save speedtest results from various users. Thus you can check out different results from various countries/regions.





Features


  • Self-hosted lightweight speedtest page
  • User speedtest result datasheet
  • No MySQL, but lightweight file database
  • Use ip.sb to get IP info by default


Docker Run Deployment

One line command to bring your speedtest site up and runnin if you have your docker environment ready. 

Else you can check this post for howto set up your docker environment:
  • Deploy Docker, Docker-Compose, Portainer and NPM (Nginx Proxy Manager)

Run Docker using docker run command


  • docker run -d -p 9001:80 -it badapple9/speedtest-x

-d:start it as a daemon mode

9001: default mapping internal port 80 to host port 9001


Environment variables :

-e WEBPORT=80: Internal Speedtest-x Docker Web Port . Default is 80.

-e MAX_LOG_COUNT=100: Maximum history numbers for saved test results. Default is 100.

-e IP_SERVICE=ip.sb: Which IP DB service provider( default is ip.sb or ipinfo.io)

-e SAME_IP_MULTI_LOGS=false: If allow save multiple results for same ip. Default is false. but strongly suggest to set it to True



Run Docker with multiple environment variables


  • docker run -d -e SAME_IP_MULTI_LOGS=true -e MAX_LOG_COUNT=500 -p 9001:80 -it badapple9/speedtest-x



Deploy to Own VPS

Not recommended to deploy it to other application platform such as fly.io, since those platforms are having limitation for the outbound/inbound througputs. It will be better for you to know the speed limitation on your VPS before deploying to it.





Make Docker Support ipv6

 


If you would like your docker to support IPv6, you can edit /etc/docker/daemon.json ,add following content into file, or create this new file if it doesn't exist.



  • {
  • "ipv6": true,
  • "fixed-cidr-v6": "fd00::/80",
  • "experimental": true,
  • "ip6tables": true
  • }





References

  • VPS搭建Speedtest-x在线测速










via Blogger http://blog.51sec.org/2023/03/5-mins-docker-deploy-self-hosted.html
March 06, 2023 at 12:25PM Docker
0 Comments



Leave a Reply.

    Categories

    All
    Architecture
    Blog
    Checkpoint
    Cisco
    Cloud
    CyberArk
    F5
    Fortigate
    Guardium
    Juniper
    Linux
    Network
    Others
    Palo Alto
    Qualys
    Raspberry Pi
    Security
    SIEM
    Software
    Vmware
    VPN
    Wireless

    Archives

    March 2024
    February 2024
    January 2024
    December 2023
    November 2023
    October 2023
    September 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    October 2019
    September 2019
    June 2019
    July 2018
    May 2018
    December 2017
    August 2017
    April 2017
    March 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015

    Print Page:

    RSS Feed

    Email Subscribe
Powered by Create your own unique website with customizable templates.
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org