Skip to content
Alix Lourme edited this page Aug 16, 2021 · 2 revisions

Development tips

Run a MySQL & phpMyAdmin with Docker

Provide file mysql-phpmyadmin.yml:

version: '3.2'

services:
   db:
      image: mysql:latest
      container_name: database-mysql
      restart: always
      ports:
       - '3306:3306'
      environment:
        MYSQL_ROOT_PASSWORD: root

   app:
      depends_on:
       - db
      image: phpmyadmin/phpmyadmin
      container_name: phpmyadmin
      restart: always
      ports:
       - '80:80'
      environment:
        PMA_HOST: db

And run : docker-compose -f mysql-phpmyadmin.yml up -d

Go on http://localhost and sign in with root/root (wait a few seconds if connection refused, time to initializations).

Clone this wiki locally