phpMyAdmin - martikainen87/Home-Automation GitHub Wiki
Adding phpMyAdmin to your docker environment
The image can be found here phpMyadmin @ Docker HUB
docker create --name phpmyadmin --restart=always --link mysql:db -e EZ=Europe/Stockholm -e GUID=1000 -e PUID=1000 -p 8088:80 -v /Docker/phpmyadmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php phpmyadmin/phpmyadmin
Explanation
docker create --name phpmyadmin
Creating the container with the name "phpmyadmin"
--restart=always
makes the container start on boot
--link mysql:db
Linking our dontainer to our MySQL container
-e EZ=Europe/London
Timezone
-e GUID=1000
The ID of our users group
-e PUID=1000
The ID of our user
-p 8088:80
the external and internal port
-v /Docker/phpmyadmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php
user specific configuration file
phpmyadmin/phpmyadmin
the name of the image
Configuration
Open your browser and go to http://yourip:8088 The login is "root" and whatever password you set as "MYSQL_ROOT_PASSWORD" when starting the MySQL container