This Matomo Analytics tip is for those self-hosting Ghost on a VPS with limited resources.
Both Matomo and Ghost use MySQL, but the official docs for Matomo advise setting up a private instance of MySQL for Matomo. That’s good for isolation, but also uses some extra precious memory which could be saved if Matomo and Ghost were set to share the same database.
Here’s how I set up Matomo running in a container with podman to share the MySQL database running on the host: