# MySQL on Docker ## コンテナ起動時の DB 初期化 ```yaml volumes: ./initdb:/docker-entrypoint-initdb.d ``` `./initdb` 内の `.sql` と `.sh` がフィル名順に実行される。 初期化し直したい時は。 ```sh docker compose down --volumes ```