Phpmyadmin with mariadb7/27/2023 ![]() PhpMyAdmin running properly with Docker Conclusion If you want to change this, you will have to access the image and create a new database and give the regular user permissions on it. Of course, keep in mind that the root user is the one who has permissions to create databases and so on. Log in with the root user or with the normal user. Then, you can open your web browser and access to see the PhpMyAdmin home page. Run in the same directory as the file docker-compose up -d Deploy MariaDB and PhpMyAdmin using Docker Now cross your fingers so that everything goes well. The PMA_ARBITRARY variable sets an arbitrary server, so you don’t have to tie PhpMyAdmin to a particular database or server. In this case, for the port 80 of the image we have exposed the 8080 that will have to be available in the firewall. There you only define the image to use, the port that you need to expose in your system and with which PhpMyAdmin will work. The second service is called phpmyadmin and obviously, it is destined to PhpMyAdmin. Something important are the volumes that we will use to access, both to the data and to the logs that MariaDB generates. Then we define the environment variables that are a key for the root user, a regular user and its password. In this service, it is indicated that we will use the image of MariaDB: latest so we will have the latest stable version of it. The first thing is that two services are raised and db is the one of MariaDB. PMA_ARBITRARY=1 Docker Compose file for MariaDB and PhpMyAdmin ![]() So, open a text editor and create the file nano docker-compose.ymlĪnd add the following content version: '3.1' To make this deployment a bit easier, let’s resort to a yml file for Docker Compose. Deploying MariaDB and PhpMyAdmin using Docker In the case of Debian and Ubuntu, you just need to run. Once you have it, now you have to install docker-compose this package is by default in most Linux distributions.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |