# Setting Up a Speedtest Tracker Using Docker

## Метаданные

- **Канал:** Pi My Life Up
- **YouTube:** https://www.youtube.com/watch?v=2i98QAJFl74

## Содержание

### [0:00](https://www.youtube.com/watch?v=2i98QAJFl74) Segment 1 (00:00 - 05:00)

Hi everyone. It's Gus from Pi My Life Up and today I'll be going through the steps of setting up a speed test tracker using Docker. This speed test tracker allows you to monitor your internet performance easily. It is a great way to see if you are getting the speed your ISP claims to offer, while also being a helpful diagnostic tool. To set up the required software. We will be using the speed test tracker Docker container. This tutorial will work on most hardware, including the Raspberry Pi. Just make sure you have a 64 bit operating system installed. The container we are using provides builds for both x64 and Arm64 architectures. To begin, open the terminal on your device or SSH to it. First, we must update the package list by entering sudo apt update. Now let's update any out-of-date software by entering sudo apt upgrade hyphen y. We must first install docker to our device. If you have already set it up, you can skip this section. In the terminal. Enter curl space hyphen S, capital L https colon. Slash get docker. com space vertical bar space s h. This command will use curl to grab the docker install script and pass it directly to the terminal. Once it is installed, we will now need to add our user to the Docker group. We can do this by entering sudo space user mod space hyphen a capital g space, Docker space dollar sign, and then user. In all upper case. For our changes to come into effect, we must restart our device or log out. For this tutorial, we will simply reboot by entering sudo reboot. After installing Docker to your machine, we can now create a directory to store our speed test tracker and its configuration files. The directory structure we are using will ensure that it will work with software such as Dockge To create the required directory, simply enter sudo space mkdir space hyphen p space slash opt slash stacks slash speedtest. Hyphen P ensures that all directories will be created. With the directory created. Use the CD command to change to it. CD space slash opt slash stacks slash. Speed test. Now let's download the required compose file from our git by entering sudo space wget space https colon slash git dot pimylifeup dot com slash compose slash speedtest hyphen tracker slash compose dot yaml With that downloaded, we now need to make several edits to environment variables. So let's open the file by entering sudo nano compose dot yaml. In here you can see all the required settings for setting up a Docker container. We first specify our speed test tracker. We set our port mapping for both Http and https 8080 to 80 for http and 8443 to 443 for HTTPS. Next, we need to set a range of environment variables. You don't need to change the PUID and GUID as these are the user and group ID for Docker container, we must replace the app key placeholder with the app key. This key is used to encrypt and decrypt the database. You can get the app key by going to your browser and navigating to Https colon. slash speedtest hyphen tracker. dev. On this page, scroll down to the section that has an app key value. Simply click on it to copy it, or alternatively, you can write it down. Now back in the compose file, remove the app key placeholder and simply paste the app key. Now replace Time zone with a time zone of where your machine sits. This will ensure the speed test results will line up with your expected time. For example, mine is Australia slash Hobart Replace cron with a cron schedule of when you would like your speed test to run. I recommend using a cron tool to calculate the value you need to enter here. For example, if you want to test to run midnight every day, you can use the following zero. Space zero space star space star. If you don't want to use for cron, you can simply remove this line. Replace servers with the ID of a server or servers

### [5:00](https://www.youtube.com/watch?v=2i98QAJFl74&t=300s) Segment 2 (05:00 - 09:00)

that you want to perform a speed test against. Testing against times 1 or 2 places will give you a more consistent result. Rather than polling servers at random, you can get a list of nearby servers by going to your favorite web browser and entering Https colon slash c dot speed test. dot net slash speed test Hyphen. servers hyphen. static dot php On this page you will see a range of different entries. Select the ones you wish to use by copying the value in the ID fields. Once you have the values you want, go back to the terminal and enter the IDs you wish to use. For example, I will be entering 12392 comma 13279. If you aren't worried about the server used for your speed test, you can simply delete this option. Lastly, replace keep results with how long you want your results to be kept for. The value is expressed in a number of days. For example, to keep results for seven days, you simply enter seven. Alternatively, you can set this to zero to keep results forever. However, be warned that your database will become very large over time. Once you're happy with all the details, you can save and quit by pressing Ctrl X, then Y, and then enter. To start a speed test tracker, simply run Docker space. Compose space up space, hyphen D. Now the server should be up and running. So now let's go get our device's IP address by entering hostname space hyphen capital I Our IP address is the first one in the list in the web browser. Navigate to your IP address colon 8080. In my case it is 192. 168. 0. 15. Colon 8080. You will need to log in when you go to access the software. The default email address is admin at example. com and the password is simply password. Once logged in, you want to adjust the default user to use your own username and password. To do this, click on the user icon in the top right corner and select the profile option. In the drop down box. After changing to the user's profile screen, you will see a page listing your details. On this screen, you want to specify an email address and password for your account. Once you're happy with your user's new details, simply click Save Changes. Now let's go back to the dashboard. Running a speed test from this tracker is a really easy process. All you need to do is click the Run Speed test button in the top right corner. After clicking the button, a pop up will appear. Select the server you wish to test your connection to. Once you have selected a server, click start to start the internet speed test. After a few seconds, refresh the screen and it should have a dashboard populated with the results of your first speed test. To see all your results, you can open the sidebar by clicking the menu icon in the top left corner of the screen. Select results from the menu, and you can now see detailed results of your speed test. To update the speed test container, simply go back to the terminal. Ensure you are within the same directory as your compose file by entering cd space slash opt slash stacks slash speed test to pull the latest version of a speed test, tracker container. Enter Docker space compose space. Pull. To move to the latest release, simply enter Docker compose space up space hyphen D. Your speed test container will now be updated. There are a few more settings that you can set within the speed test. tracker dashboard. For example. You can set notifications, thresholds, multiple users, and more. Also, be sure to check out the official documentation for any other environment variables you might want to set up. Any environment variable will need to be set in your compose file. I hope you now have the Internet Speed test tracker set up and running on your device. If you have enjoyed this tutorial, be sure to like and subscribe! Until next time, have a good one!

---
*Источник: https://ekstraktznaniy.ru/video/39356*