Back to all templates
Matomo logo

Matomo

Application1024MB+ RAM

Privacy-respecting web analytics platform

analyticsprivacyenterprise

Deploy Matomo in 3 Steps

1

Connect Your VPS

Add your server credentials to Server Compass

2

Select Matomo

Choose from our template library

3

Deploy & Configure

Fill in settings and click Deploy

No Docker knowledge required
CLI Deployment

Deploy Matomo Yourself

Want full control? Here's how to deploy Matomo yourself using Docker Compose.

1

Establish SSH Connection

Connect to your remote server using SSH. Make sure you have your server credentials ready.

terminal
# Log into your server
ssh root@<your-server-ip>

# If using key-based auth
ssh -i ~/.ssh/my-key root@<your-server-ip>

First time? Docker not installed? Run: curl -fsSL https://get.docker.com | sh

2

Create Project Directory

Set up a directory to store your Docker configuration.

terminal
# Create and navigate to project directory
mkdir -p ~/apps/matomo
cd ~/apps/matomo
3

Configure Docker Compose

Add this configuration to your docker-compose.yml file:

docker-compose.yml
services:
  matomo:
    image: matomo:latest
    ports:
      - "8080:80"
    environment:
      - MATOMO_DATABASE_HOST=db
      - MATOMO_DATABASE_DBNAME=matomo
      - MATOMO_DATABASE_USERNAME=matomo
      - MATOMO_DATABASE_PASSWORD=<your-db-password>
    volumes:
      - matomo_data:/var/www/html
    restart: unless-stopped
    depends_on:
      db:
        condition: service_healthy

  db:
    image: mariadb:11
    environment:
      - MARIADB_ROOT_PASSWORD=<your-db-root-password>
      - MARIADB_DATABASE=matomo
      - MARIADB_USER=matomo
      - MARIADB_PASSWORD=<your-db-password>
    volumes:
      - mariadb_data:/var/lib/mysql
    restart: unless-stopped
    healthcheck:
      test: ["CMD-SHELL", "healthcheck.sh --connect --innodb_initialized"]
      interval: 10s
      timeout: 5s
      retries: 5

volumes:
  matomo_data:
  mariadb_data:
Required Settings
PORTHost port(default: 8080)
DB_PASSWORDDB password
DB_ROOT_PASSWORDRoot password
4

Start the Services

Execute the deployment and check the container status.

terminal
# Deploy the application
docker compose up -d

# Check container health
docker compose ps

# Monitor logs
docker compose logs -f --tail=100
5

Allow Incoming Connections

Enable network access by updating your firewall rules.

terminal
# Allow the application port through firewall
sudo ufw allow 8080/tcp
sudo ufw reload

# Access your app at:
# http://your-server-ip:8080
Skip the Terminal

Too complicated? Let Server Compass handle it.

Skip the terminal and deploy Matomo with a visual interface. Configure everything with clicks, not commands.

  • Intuitive dashboard
  • Deploy in 3 minutes
  • Free SSL included
  • Blue-green deploys
  • Real-time logs
  • Version history
Download Server Compass$29 one-time • Lifetime license

After Deployment

After deploying Matomo with Server Compass, complete these steps to finish setup

1

Complete installation wizard

2

Add websites to track

3

Install tracking code

Need help? Check out our documentation for detailed guides.

Matomo FAQ

Common questions about self-hosting Matomo

How do I deploy Matomo with Server Compass?

Simply download Server Compass, connect to your VPS, and select Matomo from the templates list. Fill in the required configuration and click Deploy. The entire process takes under 3 minutes.

What are the system requirements for Matomo?

Matomo requires a minimum of 1024MB RAM. We recommend a VPS with at least 2048MB RAM for optimal performance. Any modern Linux server with Docker support will work.

Can I migrate my existing Matomo data?

Yes! Server Compass provides volume mapping that allows you to import existing data. You can also use standard Matomo backup and restore procedures.

How do I update Matomo to the latest version?

Server Compass makes updates easy. Simply click the Update button in your deployment dashboard, and the latest Matomo image will be pulled and deployed with zero downtime.

Is Matomo free to self-host?

Matomo is open-source software. You only pay for your VPS hosting (typically $5-20/month) and optionally Server Compass ($29 one-time). No subscription fees or per-seat pricing.

Ready to Self-Host Matomo?

Download Server Compass and deploy Matomo to your VPS in under 3 minutes. No Docker expertise required.

Download Server Compass