diff --git a/docker-compose.yml b/docker-compose.yml index 1631ec9fa9e..0f4a7fc30da 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,9 @@ mysql: - image: mysql + image: mysql:5.7 ports: - "3306:3306" environment: - - MYSQL_ROOT_PASSWORD=root - - MYSQL_DATABASE=test + - MYSQL_ROOT_PASSWORD=petclinic + - MYSQL_DATABASE=petclinic volumes: - - "./conf.d:/etc/mysql/conf.d:ro" \ No newline at end of file + - "./conf.d:/etc/mysql/conf.d:ro" diff --git a/src/main/resources/application-mysql.properties b/src/main/resources/application-mysql.properties index c2c654fe45b..823b32b697f 100644 --- a/src/main/resources/application-mysql.properties +++ b/src/main/resources/application-mysql.properties @@ -1,7 +1,7 @@ # database init, supports mysql too database=mysql -spring.datasource.url=jdbc:mysql://localhost/test +spring.datasource.url=jdbc:mysql://localhost/petclinic spring.datasource.username=root -spring.datasource.password=root +spring.datasource.password=petclinic # Uncomment this the first time the app runs # spring.datasource.initialization-mode=always