21 lines
558 B
YAML
21 lines
558 B
YAML
version: '3'
|
|
services:
|
|
docker-mysql:
|
|
restart: always
|
|
container_name: docker-mysql
|
|
image: mysql/mysql-server
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
environment:
|
|
MYSQL_DATABASE: reso_data_dictionary_1_7
|
|
MYSQL_ROOT_PASSWORD: root
|
|
MYSQL_ROOT_HOST: '%'
|
|
volumes:
|
|
- ./sql:/docker-entrypoint-initdb.d
|
|
ports:
|
|
- "6033:3306"
|
|
healthcheck:
|
|
test: "/usr/bin/mysql --user=root --password=root --execute \"SHOW DATABASES;\""
|
|
interval: 2s
|
|
timeout: 20s
|
|
retries: 10
|