Play databases with Adminer and Docker. When you use Docker with a database you need a client to operate on it. A simple and clean solution is to install a client in a Docker container. With that, no need to install anything on your computer besides Docker. Many clients exists, like PHPMyAdmin, but we want one that can connect to different database, not just MySQL/MariaDB.
Task : Defining Adminer Container
To complete this task, you need to copy the following code:
version: '3' services: adminer: image: adminer restart: always ports: - '8080:8080'
- This tells docker to create service named
adminerand use docker image
- Host port
8080is mapped to container port
- Container will be restarted in case of failure.