phpMyAdmin will be available on http://localhost:8080
Last active
September 20, 2020 22:04
-
-
Save khromov/3525e3fb1335630e3b111ee62d9e9300 to your computer and use it in GitHub Desktop.
docker-compose file for phpMyAdmin and MySQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- ./db:/var/lib/mysql | |
- ./scripts:/root/scripts | |
environment: | |
MYSQL_ROOT_PASSWORD: secret | |
MYSQL_DATABASE: db | |
MYSQL_USER: db | |
MYSQL_PASSWORD: db | |
phpmyadmin: | |
depends_on: | |
- db | |
image: phpmyadmin/phpmyadmin | |
ports: | |
- "8080:80" | |
environment: | |
PMA_HOST: db | |
PMA_USER: db | |
PMA_PASSWORD: db | |
MYSQL_ROOT_PASSWORD: secret | |
UPLOAD_LIMIT: 2G |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment