diff --git a/complete/docker-compose.yml b/complete/docker-compose.yml index 859832f..01ec87b 100644 --- a/complete/docker-compose.yml +++ b/complete/docker-compose.yml @@ -1,13 +1,14 @@ -mysql: - image: mysql - ports: - - "3306:3306" - expose: - - "3306" - environment: - - MYSQL_USER=springuser - - MYSQL_PASSWORD=ThePassword - - MYSQL_DATABASE=db_example - - MYSQL_ROOT_PASSWORD=root - volumes: - - "./conf.d:/etc/mysql/conf.d:ro" \ No newline at end of file +version: '3.8' + +services: + db: + image: mysql:8.0 + command: --default-authentication-plugin=mysql_native_password + restart: always + environment: + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: db_example + MYSQL_USER: springuser + MYSQL_PASSWORD: ThePassword + ports: + - "3306:3306"