Skip to content

Instantly share code, notes, and snippets.

@binduchinnasamy
Last active March 16, 2018 07:40
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 binduchinnasamy/f58aa9b986c0662afaa06a1cfd7c4ab0 to your computer and use it in GitHub Desktop.
Save binduchinnasamy/f58aa9b986c0662afaa06a1cfd7c4ab0 to your computer and use it in GitHub Desktop.
Docker Compose File for MySQL and phpmyadmin
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