For this installation, we need the following prerequisites:
Now, let's start the installation procedures:
mkdir docker -p && mkdir docker/speedtest-tracker -p && cd docker/speedtest-tracker && mkdir config
Use the below command to list open ports and if you are using port 8982 you can change that in the below script:
sudo netstat -tulpn | grep LISTEN
nano docker-compose.yml
* When using volumes (-v flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
In this instance PUID=1000 and PGID=1000, to find yours use id user as below:
$ id
#uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
Now you can paste the below script via the NANO editor, save and exit
version: '3.3'
services:
speedtest-tracker:
container_name: speedtest-tracker
ports:
- '8982:80' # feel free to change the port on the left side of the colon
- '8943:443' # feel free to change the port ont he left side of the colon
environment:
- PUID=1000
- PGID=1000
- MAIL_HOST=smtp.gmail.com
- MAIL_PORT=587
- [email protected]
- MAIL_PASSWORD=your own 16 characters secret password generated by google
- MAIL_ENCRYPTION=starttls
- MAIL_FROM_ADDRESS="[email protected]"
volumes:
- '/root/docker/speedtest-tracker:/config' # left side can be any path you want
image: 'ghcr.io/alexjustesen/speedtest-tracker:latest'
restart: unless-stopped
Once you've made adjustments to any ports (on the left side of the colon ':' only), and if you elect to use SMTP email, make sure you update all MAIL_* values to match your SMTP server settings, you can then save the file with CTRL + O, then Enter to confirm, and CTRL + X to exit.
If you are using the Portainer stack hit deploy or if you are using docker-compose use the below command:
docker-compose up -d
Once at the login page, you'll want to log in using the default credentials. At the time of writing, the default login will be
username: [email protected]
password: password
For learning how you should work with please watch my video on Youtube.
Good luck…