skip to Main Content

Create database on docker startup

I want to create mysql database on docker-compose startup from database.sql script. My database.sql script is on location: src/main/java/com/project_name/resources/db/database.sql. How should I wrote that in my docker-compose.yml file? Right now neither works. volumes: - ./database.sql:/data/application/database.sql or something like: volumes: -…

VIEW QUESTION
Back To Top
Search