The simplest and fastest way to install MariaDB is to use the Portainer template prepared by our team. This method minimizes manual configuration and allows you to deploy a stable, ready-to-use environment in just a few minutes.

Requirements:

  • A VPS with Portainer installed via the Unihost script.

  • A deployed NPM (Nginx Proxy Manager).

After connecting to Portainer, go to the Application section, select MariaDB with phpMyAdmin, and fill in the required information.

After that, you will see the MariaDB container in the Stacks section.

If you need to connect to the database server from outside, you must uncomment the ports lines in the Editor section (see screenshot). This will enable access to the database for external connections.

Now go to NPM and create a proxy for phpMyAdmin, binding it to port 80. Fill in the fields as shown in the screenshot.

If the domain is already linked to the server via DNS — add it to NPM and access phpMyAdmin using the domain.

If there is no domain — specify a test domain in NPM, add it to the hosts file, and use it to log in to phpMyAdmin.

server_ip php.admin

After NPM is configured, open the specified domain in your browser — you will be taken to the phpMyAdmin login page.

After entering your credentials, you will gain access to phpMyAdmin.

Conclusion

Using a ready-made Portainer template allows you to save significant time and reduce the likelihood of errors. As a result, you get a fully functional MariaDB “out of the box” with minimal configuration effort.