Created
April 28, 2020 07:17
-
-
Save asta-kun/19d757cb614c07f81620174f0165e7b5 to your computer and use it in GitHub Desktop.
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:latest | |
ports: | |
- 3306:3306 # change ip if required | |
restart: always | |
command: [ | |
'--default_authentication_plugin=mysql_native_password', | |
'--character-set-server=utf8mb4', | |
'--collation-server=utf8mb4_unicode_ci' | |
] | |
volumes: | |
- db_data:/var/lib/mysql | |
environment: | |
MYSQL_DATABASE: "dbname" | |
MYSQL_ROOT_PASSWORD: "123456" | |
volumes: | |
db_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment