From 9dbf4af9743ef4e59ba742d0db1e1ba9b6060f0f Mon Sep 17 00:00:00 2001 From: austek Date: Sat, 11 Nov 2023 11:49:36 +0000 Subject: [PATCH] Upgrade docker-compose to use v3.8 --- complete/docker-compose.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) 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"