mariadb:
image: mariadb:10.1.30
ports:
- 3306:3306
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=newdb
- MYSQL_USER=user1
- MYSQL_PASSWORD=pass
FROM mariadb:10.3 #или любая другая версия
COPY create-user.sql /docker-entrypoint-initdb.d/