I have following syntax in windows based docker enr. however when i run the
docker-compose up
it loads the container however don't load the dump file inside the dump file location given as the entry-point to the mysql process.
any ideas ? below is the my docker-compose.yml file.
mysql:
image: mysql:latest
volumes_from:
- data
environment:
MYSQL_ROOT_PASSWORD: yxxxxr
MYSQL_DATABASE: career_xxx
MYSQL_USER: career_xxx
MYSQL_PASSWORD: Ixxx8;
data:
image: mysql:latest
#image: mysql:5.6
#image: mysql:latest
volumes:
- ./.config/etc/mysql/dump:/docker-entrypoint-initdb.d
command: "true"
dumpa file or a folder? I think onlysqlextensions will be loaded.docker-compose upfirst. Somehow if you have run it before, even though docker-compose says it is recreating the containers, it will not run the sql file. But when you start fresh it works.