[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
-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
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.
共有 0 条评论