Run Matomo - Google Analytics Alternative - in Docker @i12bretro
Run Matomo - Google Analytics Alternative - in Docker  @i12bretro
Uploaded September 2023 | Updated November 2026, 1 day ago
#Matomo #Analytics #Docker

Full steps can be found at i12bretro.github.io/tutorials/0279.html

--------------------------------------------------------------------
What is Matomo?
--------------------------------------------------------------------
Matomo is the leading Free/Libre open analytics platform. Matomo aims to be a Free software alternative to Google Analytics and is already used on more than 1,400,000 websites. Privacy is built-in! - github.com/matomo-org/matomo
 
--------------------------------------------------------------------
Installing Docker
--------------------------------------------------------------------
   01. Log into the Linux based device
   02. Run the following commands in the terminal
         # install prerequisites
         sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
         # add docker gpg key
         curl -fsSL download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -
         # add docker software repository
         sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"
         # install docker
         sudo apt install docker-ce docker-compose containerd.io -y
         # enable and start docker service
         sudo systemctl enable docker && sudo systemctl start docker
         # add the current user to the docker group
         sudo usermod -aG docker $USER
         # reauthenticate for the new group membership to take effect
         su - $USER
 
--------------------------------------------------------------------
Running Matomo
--------------------------------------------------------------------
   01. Continue with the following commands in a terminal window
         # create a working directory
         mkdir ~/docker/matomo -p && mkdir ~/docker/mariadb -p
         # set owner of working directories
         sudo chown "$USER":"$USER" ~/docker -R
         # allow the container to write to working directories
         sudo chmod a+rwx -R ~/docker/matomo
         # run the mariadb docker container
         docker run -d --name mariadb -e MYSQL_ROOT_PASSWORD=r00tp@$$ -e MYSQL_USER=matomo_rw -e MYSQL_PASSWORD='M4tom0!' -e MYSQL_DATABASE=matomo -v ~/docker/mariadb:/var/lib/mysql -p 3306:3006 --restart=unless-stopped mariadb:latest
         # start the matomo container
         docker run -d --name matomo --link mariadb -p 80:80 -v ~/docker/matomo:/var/www/html -e MATOMO_DATABASE_HOST=mariadb -e MATOMO_DATABASE_USERNAME=matomo_rw -e MATOMO_DATABASE_PASSWORD='M4tom0!' -e MATOMO_DATABASE_DBNAME=matomo --restart=unless-stopped matomo
   02. Open a web browser and navigate to http://DNSorIP
   03. Click Next at the Welcome screen
   04. Scroll to the bottom of the System Check screen ≫ Click Next
   05. Verify the Database Setup form ≫ Click Next
   06. Click Next on the Creating the Tables page
   07. Enter a Superuser login, password and email ≫ Click Next
   08. Complete the form to setup the first site to start tracking analytics ≫ Click Next
   09. Click Next then Continue to Matomo
   10. Login with the Superuser username and password created earlier
   11. Welcome to Matomo
 
Additional Information:  matomo.org
 


### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
Run Matomo - Google Analytics Alternative - in DockerRunning PHP Server Monitor in DockerConfigure SSH Key-Based Authentication on LinuxRun Dashy Application Dashboard in DockerContainerized Self-Hosted ACME Server with Step-CA in DockerSony PlayStation 4 Boot Animationi12bretro Plays the [Hated?] Video Background MusicRunning phpBB Bulletin Board/Forum in Docker on Ubuntu ServerQuickly Deploy an Apache/PHP/MySQL Development Environment in DockerInstall Invoice Plane - Invoice and Payment Manager - On LinuxRunning a MacOS 15 Sequoia VM in VMwareRun FocalBoard - Project and Task Management Platform - in Docker
i12bretro |

Run Matomo - Google Analytics Alternative - in Docker

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER