Skip to content

Instantly share code, notes, and snippets.

@ashutoshkarna03
Created April 11, 2020 19:40
Show Gist options
  • Save ashutoshkarna03/fe569bea53f9e55e31f17ae1a2a5747c to your computer and use it in GitHub Desktop.
Save ashutoshkarna03/fe569bea53f9e55e31f17ae1a2a5747c to your computer and use it in GitHub Desktop.
version: '3'
services:
mysqldb:
image: mysql:8.0.2
environment:
MYSQL_ROOT_PASSWORD: MYSQL_ROOT_PASSWORD
MYSQL_DATABASE: MYSQL_DATABASE
ports:
- "3306:3306"
volumes:
- "./config/my.conf:/etc/mysql/conf.d/config-file.cnf"
- "./data:/var/lib/mysql:rw"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment