Skip to content

Instantly share code, notes, and snippets.

@memoryonrepeat
Last active October 14, 2020 11:05
Show Gist options
  • Save memoryonrepeat/a5815ef2a4b61007946b7695fba645e8 to your computer and use it in GitHub Desktop.
Save memoryonrepeat/a5815ef2a4b61007946b7695fba645e8 to your computer and use it in GitHub Desktop.
MySQL Docker
version: '3'
services:
fcg-mysql:
image: mysql:5
command: --default-authentication-plugin=mysql_native_password --lower_case_table_names=2
environment:
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_ROOT_HOST: "%"
expose:
- 3306
ports:
- 3306:3306
volumes:
- ~/mysql-docker/data:/var/lib/mysql
# - ~/mysql-docker/mysqlconf/my.cnf:/etc/mysql/my.cnf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment