2022-09-20 12:20:05 -04:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
mysql-service:
|
2022-10-17 12:01:46 -04:00
|
|
|
image: "mysql/mysql-server:8.0.30"
|
|
|
|
container_name: mysql-db
|
|
|
|
command: [ "mysqld",
|
|
|
|
"--require_secure_transport=ON",
|
|
|
|
"--default_authentication_plugin=mysql_native_password",
|
|
|
|
"--general_log=ON" ]
|
|
|
|
ports:
|
|
|
|
- "3306:3306"
|
|
|
|
volumes:
|
|
|
|
- type: bind
|
|
|
|
source: ./data
|
|
|
|
target: /var/lib/mysql
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_HOST: "%"
|
|
|
|
MYSQL_ROOT_PASSWORD: "Password2022"
|
|
|
|
MYSQL_DATABASE: test_db
|