version: '3'
services:
db:
image: mysql:8.0.32
container_name: mysql
restart: always
command: --default-authentication-plugin=mysql_native_password --tls-version='' # Use classic MySQL authentication plugin and disable SSL/TLS
environment:
MYSQL_DATABASE: strapi
MYSQL_ROOT_PASSWORD: P@ssw0rd
volumes:
- ./mysql_data:/var/lib/mysql
ports:
- '3306:3306'