Simple sql-boot template for MySQL scripts.
- Clone this repo (or click "Use this template" and clone new repo):
git clone https://github.com/sql-boot/mysql-template.git
cd mysql-template
-
Put your SQL scripts to
sql
folder -
Edit properties in application.yml for your database(s)
-
Run with Docker Compose:
docker-compose up -d sql-boot
- Or run with Docker:
docker build . -t sql-boot-mysql
docker run -v $PWD/sql:/sql-boot/sql \
-v $PWD/application.yml:/sql-boot/application.yml \
-t -p 8007:8007 \
mgramin/sql-boot
docker-compose up -d