Skip to content
Snippets Groups Projects
Commit 6905e38c authored by trisberg's avatar trisberg Committed by Dave Syer
Browse files

Make MySQL configuration files/docs consistent

- use petclinic as the db name and root password

Fixes #322
parent dd5b080d
No related branches found
No related tags found
No related merge requests found
mysql: mysql:
image: mysql image: mysql:5.7
ports: ports:
- "3306:3306" - "3306:3306"
environment: environment:
- MYSQL_ROOT_PASSWORD=root - MYSQL_ROOT_PASSWORD=petclinic
- MYSQL_DATABASE=test - MYSQL_DATABASE=petclinic
volumes: volumes:
- "./conf.d:/etc/mysql/conf.d:ro" - "./conf.d:/etc/mysql/conf.d:ro"
\ No newline at end of file
# database init, supports mysql too # database init, supports mysql too
database=mysql database=mysql
spring.datasource.url=jdbc:mysql://localhost/test spring.datasource.url=jdbc:mysql://localhost/petclinic
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password=root spring.datasource.password=petclinic
# Uncomment this the first time the app runs # Uncomment this the first time the app runs
# spring.datasource.initialization-mode=always # spring.datasource.initialization-mode=always
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment