Skip to content

Instantly share code, notes, and snippets.

@ruslanguns
Last active October 5, 2020 23:38
Show Gist options
  • Save ruslanguns/9e3e5e7ec918af90ae69cb671d885b0d to your computer and use it in GitHub Desktop.
Save ruslanguns/9e3e5e7ec918af90ae69cb671d885b0d to your computer and use it in GitHub Desktop.
Basic MySQL Docker Instance
version: '2'
services:
database:
image: mysql:5.6
command: --default-authentication-plugin=mysql_native_password
volumes:
- "./.mysql-data/db:/var/lib/mysql"
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: myblog_db
MYSQL_USER: myblog_user
MYSQL_PASSWORD: myblog_password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment