Last active
May 20, 2021 08:45
-
-
Save aonurdemir/ffc8276c652ebf396ba586cc1aacfc95 to your computer and use it in GitHub Desktop.
mysql 8 docker-compose up
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:8.0 | |
container_name: test_db | |
restart: "no" | |
ports: | |
- "33006:3306" | |
environment: | |
- MYSQL_DATABASE=test | |
- MYSQL_ROOT_PASSWORD=123456 | |
- MYSQL_USER=user | |
- MYSQL_PASSWORD=123456 | |
volumes: | |
- dbdata:/var/lib/mysql | |
command: '--default-authentication-plugin=mysql_native_password' | |
volumes: | |
dbdata: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment