Last active
March 16, 2018 07:40
-
-
Save binduchinnasamy/f58aa9b986c0662afaa06a1cfd7c4ab0 to your computer and use it in GitHub Desktop.
Docker Compose File for MySQL and phpmyadmin
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' | |
services: | |
db: | |
image: mysql | |
ports: | |
- "3306:3306" | |
# This sets the root password for MYSQL DB | |
environment: | |
MYSQL_ROOT_PASSWORD: <<My sql root pwd>> | |
volumes: | |
#Note that this is for Windows. For linux, use Linux formate | |
- //C/Work/Dockershared/mysql:/var/lib/mysql | |
networks: | |
- default | |
phpmyadmin: | |
image: phpmyadmin/phpmyadmin | |
links: | |
- db:db | |
ports: | |
- 8000:80 | |
environment: | |
MYSQL_ROOT_PASSWORD: <<My SQL Root Pwd>> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment