Skip to content

Instantly share code, notes, and snippets.

@Git-I985
Created May 28, 2024 16:07
Show Gist options
  • Save Git-I985/8f7bad5050978b78c3523755c8362817 to your computer and use it in GitHub Desktop.
Save Git-I985/8f7bad5050978b78c3523755c8362817 to your computer and use it in GitHub Desktop.
Simple docker compose pma + mysql (phpMyAdmin + MySql)
services:
mysql:
image: mysql
restart: always
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
phpmyadmin:
image: phpmyadmin
restart: always
ports:
- 8080:80
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_USER: root
PMA_PASSWORD: root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment