Menu

Laravel Docker: Install Adminer with a MySQL or PostgreSQL Database
📰

Laravel Docker: Install Adminer with a MySQL or PostgreSQL Database

DEV Community: docker·Muhammad Yasir Amin·4 days ago
#ATC3idKm
#devtodocker#devto#dev#adminer#laravel
Reading 0:00
15s threshold

To run Adminer with Laravel in Docker, add an adminer service to your docker-compose.yml , set ADMINER_DEFAULT_SERVER to your database service name, publish a port such as 8081, and open it in the browser. Log in with the same credentials Laravel uses. Adminer is a single-file database manager that works with MySQL, PostgreSQL, SQLite and more, so it suits projects that are not locked to one engine.

This guide uses Laravel 13 (PHP 8.3 or newer) with a MySQL container, then shows how to switch the same Adminer service to PostgreSQL.

Why use Adminer instead of a desktop client?

It runs next to your app, so the whole team gets the same tool by running docker compose up .

There is nothing to install on the host.

It can talk to any database service on the Compose network by name.

What do I need before I start?

Docker with the Compose plugin.

A Laravel project containerised with a database service.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.