Skip to content

Instantly share code, notes, and snippets.

@khromov
Last active September 20, 2020 22:04
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 khromov/3525e3fb1335630e3b111ee62d9e9300 to your computer and use it in GitHub Desktop.
Save khromov/3525e3fb1335630e3b111ee62d9e9300 to your computer and use it in GitHub Desktop.
docker-compose file for phpMyAdmin and MySQL
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