From 3d0aba8bdbaca414904dac43eda194e0a1c8c9d6 Mon Sep 17 00:00:00 2001 From: Icebob Date: Wed, 1 May 2024 09:39:53 +0200 Subject: [PATCH] Update docker-compose.yml Lock the Mysql version because 8.4.0 doesn't support `default-authentication-plugin`, but the new `--authentication-policy=caching_sha2_password` doesn't work with `mysql` library, only with `mysql2` --- test/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/docker-compose.yml b/test/docker-compose.yml index 8c1e4e9..4a5037e 100644 --- a/test/docker-compose.yml +++ b/test/docker-compose.yml @@ -29,7 +29,7 @@ services: # - postgres mysql: - image: mysql:8 + image: mysql:8.3 ports: - "3306:3306" environment: @@ -37,7 +37,7 @@ services: - MYSQL_DATABASE=db_int_test healthcheck: test: /usr/bin/mysql -hlocalhost -uroot -pmoleculer -e "SELECT 1" - command: --authentication-policy=caching_sha2_password + command: --default-authentication-plugin=mysql_native_password volumes: - ./scripts/mysql-create-databases.sql:/docker-entrypoint-initdb.d/mysql-create-databases.sql