This commit is contained in:
JavierPC28 2025-01-09 11:06:17 +00:00
parent 6148ddd967
commit 884d6a4345
2 changed files with 23 additions and 0 deletions

View file

@ -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"

View file

@ -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