Created
December 4, 2019 11:46
-
-
Save itkrt2y/c6c3142ef0d44b70121e4cb6a469ff00 to your computer and use it in GitHub Desktop.
Docker / MySQL (utf8mb4)
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: "3" | |
services: | |
db: | |
image: mysql:5.7 | |
container_name: sample-db | |
ports: | |
- 3344:3306 | |
volumes: | |
- ./db/mysql:/var/lib/mysql | |
command: | |
[ | |
"mysqld", | |
"--character-set-server=utf8mb4", | |
"--collation-server=utf8mb4_bin", | |
] | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: test | |
MYSQL_USER: test | |
MYSQL_PASSWORD: test |
Author
itkrt2y
commented
Dec 4, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment