Skip to content

Instantly share code, notes, and snippets.

@asta-kun
Created April 28, 2020 07:17
Show Gist options
  • Save asta-kun/19d757cb614c07f81620174f0165e7b5 to your computer and use it in GitHub Desktop.
Save asta-kun/19d757cb614c07f81620174f0165e7b5 to your computer and use it in GitHub Desktop.
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