有 docker-compose.yml
services:
web:
build: ./php
environment:
- APACHE_RUN_USER=#1000
volumes:
- ${APP_PATH_HOST}:${APP_PATH_CONTAINER}
ports:
- 8080:80
working_dir: ${APP_PATH_CONTAINER}
db:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: test
volumes:
- ./db:/var/lib/mysql
- ./migr:/usr/data
adminer:
image: adminer
restart: always
ports:
- 6080:8080
3个sql数据库转储存放在migr文件夹中,如何在构建项目时将它们导入到db容器中的数据库中?