secdevoops-spring-boot-docker_mysql_entrypoint# spring-boot-basic-docker
A basic Spring Boot Project with Spring Security and JWT running into a Docker container and a MySQL container.
The init_script.sql creates the user_account, role and user_account_role tables, inserts the roles 'ADMIN' and 'USER' and create an 'admin' user with '123456' password.
mvn compile jib:dockerBuild (-P prod)
docker-compose up --no-start (-f docker-compose-prod.yml)
sudo cp init_script.sql /var/lib/docker/volumes/secdevoops-spring-boot-docker_mysql_entrypoint/_data/
docker-compose up (-f docker-compose-prod.yml)