Skip to content

Instantly share code, notes, and snippets.

@arielgk
Forked from alifarazz/docker-compose.yml
Created October 14, 2019 02:55
Show Gist options
  • Select an option

  • Save arielgk/f9107ea108c51845ef6778d9edf39b38 to your computer and use it in GitHub Desktop.

Select an option

Save arielgk/f9107ea108c51845ef6778d9edf39b38 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