Skip to content

Instantly share code, notes, and snippets.

@alifarazz
Created January 7, 2019 21:22
Show Gist options
  • Select an option

  • Save alifarazz/a03573b32103e2053cff69f0be317c59 to your computer and use it in GitHub Desktop.

Select an option

Save alifarazz/a03573b32103e2053cff69f0be317c59 to your computer and use it in GitHub Desktop.
phpmyadmin and mysql docker-compose file
version: '3.1'
services:
mysql_inst:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
# ports:
# - 8083:3306
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "0000"
# MYSQL_DATABASE: myDb
myadmin:
image: phpmyadmin/phpmyadmin:latest
restart: always
environment:
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: "0000"
links:
- "mysql_inst:db"
ports:
- 8080:80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment