Skip to content

Instantly share code, notes, and snippets.

@aonurdemir
Last active May 20, 2021 08:45
Show Gist options
  • Save aonurdemir/ffc8276c652ebf396ba586cc1aacfc95 to your computer and use it in GitHub Desktop.
Save aonurdemir/ffc8276c652ebf396ba586cc1aacfc95 to your computer and use it in GitHub Desktop.
mysql 8 docker-compose up
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