Skip to content

Instantly share code, notes, and snippets.

@mritzco
Created July 26, 2020 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mritzco/1a4df159799cec10baae4bd1b4b8981d to your computer and use it in GitHub Desktop.
Save mritzco/1a4df159799cec10baae4bd1b4b8981d to your computer and use it in GitHub Desktop.

Running phpmyadmin to localhost phpmyadmin

Allows to run phpmyadmin to local db without polluting your environment with Apache and PHP.

Runs of port 80, that might be an issue

docker-compose -f phpmyadmin.yml up

Remove the comment to call any server #PMA_ARBITRARY

version: "3"
services:
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
environment:
# - PMA_ARBITRARY=1
- MYSQL_ROOT_PASSWORD=root
- PMA_HOST=127.0.0.1
restart: always
network_mode: host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment