Last active
October 5, 2020 23:38
-
-
Save ruslanguns/9e3e5e7ec918af90ae69cb671d885b0d to your computer and use it in GitHub Desktop.
Basic MySQL Docker Instance
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: '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