diff --git a/docker-compose.yml b/docker-compose.yml index 47579bbaf..8663e5e21 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,3 +19,17 @@ 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" \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index d43bcd3c9..e1eaec12f 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -8,6 +8,7 @@ spring.datasource.url=jdbc:h2:mem:testdb spring.h2.console.enabled=true spring.h2.console.settings.web-allow-others=true +spring.profiles.active=postgres # Web spring.thymeleaf.mode=HTML