Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
icebob authored May 1, 2024
1 parent 8fac4aa commit 3d0aba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ services:
# - postgres

mysql:
image: mysql:8
image: mysql:8.3
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=moleculer
- 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

Expand Down

0 comments on commit 3d0aba8

Please sign in to comment.