Skip to content

Instantly share code, notes, and snippets.

@mborodov
Created October 1, 2018 11:34
Show Gist options
  • Save mborodov/3ebb861a40c2848ca0a796363cb7f751 to your computer and use it in GitHub Desktop.
Save mborodov/3ebb861a40c2848ca0a796363cb7f751 to your computer and use it in GitHub Desktop.
MySQL and phpmyadmin docker comse file
version: '3.5'
services:
mysql:
image: mysql:5.7
container_name: mysql
volumes:
- './data:/var/lib/mysql'
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: password
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: phpmyadmin
links:
- 'mysql:db'
ports:
- '8080:80'
environment:
PMA_USER: root
PMA_PASSWORD: password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment