docker-compose.yml
version: '2'
services:
mariadb:
image: mariadb:10
hostname: mariadb
volumes:
- ./mariadb:/var/lib/mysql
- ./schema:/docker-entrypoint-initdb.d
ports:
- 3306:3306
environment:
- TZ=Asia/Bangkok
- MYSQL_ROOT_PASSWORD=...
- "MYSQL_ROOT_HOST=%"
restart: always
Run