I am using docker-compose to build a web app with flask and mysql. I am using mysql:8.0 as base image for mysql, but I am facing issue with default-authentication-plugin. Here is my code...
version: "2"
services:
app:
build: ./app
links:
- db
ports:
- "5000:5000"
db:
image: mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
command: --default-authentication-plugin=mysql_native_password
restart: always
Following error message appears
Authentication plugin 'caching_sha2_password' is not supported