mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 23:05:49 +00:00
Commit
This commit is contained in:
parent
6148ddd967
commit
884d6a4345
2 changed files with 23 additions and 0 deletions
|
@ -19,3 +19,19 @@ services:
|
|||
- POSTGRES_PASSWORD=petclinic
|
||||
- POSTGRES_USER=petclinic
|
||||
- POSTGRES_DB=petclinic
|
||||
|
||||
phpmyadmin:
|
||||
image: phpmyadmin
|
||||
ports:
|
||||
- 8088:80
|
||||
environment:
|
||||
- PMA_HOST=mysql
|
||||
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4
|
||||
restart: always
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: admin@admin.com
|
||||
PGADMIN_DEFAULT_PASSWORD: petclinic
|
||||
ports:
|
||||
- "5050:80"
|
|
@ -1,8 +1,15 @@
|
|||
spring.profiles.active=mysql
|
||||
|
||||
# database init, supports mysql too
|
||||
database=h2
|
||||
spring.sql.init.schema-locations=classpath*:db/${database}/schema.sql
|
||||
spring.sql.init.data-locations=classpath*:db/${database}/data.sql
|
||||
|
||||
# h2
|
||||
spring.datasource.url=jdbc:h2:mem:testdb
|
||||
spring.h2.console.enabled=true
|
||||
spring.h2.console.settings.web-allow-others=true
|
||||
|
||||
# Web
|
||||
spring.thymeleaf.mode=HTML
|
||||
|
||||
|
|
Loading…
Reference in a new issue