arrow_back
Back

phpMyAdmin Docker: MySQL and MariaDB web admin UI

Andrew Dorokhov Andrew Dorokhov schedule 1 min read
menu_book Table of Contents

Adding a service to the docker-compose.yml:

phpmyadmin:
    image: phpmyadmin
    restart: always
    ports:
      - 8080:80
    environment:
      - PMA_ARBITRARY=1
PMA_ARBITRARY - when set to 1 connection to the arbitrary server will be allowed.

In order to save time we can specify MySQL credentials in the environment section:

phpmyadmin:
    image: phpmyadmin
    restart: always
    ports:
      - 8080:80
    environment:
      - PMA_HOST=db
      - PMA_USER=wordpress
      - PMA_PASSWORD=wordpress
      - UPLOAD_LIMIT=3000M
      - MEMORY_LIMIT=1024M

Notes

Don’t forget to set a network for the container if it’s necessary:

# Example:
networks:
  - sail
code

Need Help with Development?

Happy to help — reach out via the contacts or go straight to my Upwork profile.

work View Upwork Profile arrow_forward
Next Article

MySQL Docker image: official MySQL Server container

arrow_forward