Added a profile, that starts the app with a PostgreSQL-DB
[demos/spring/data-jdbc] / src / main / resources / application.yml
index 7ea719a..0927e14 100644 (file)
@@ -3,3 +3,18 @@ management:
     web:
       exposure:
         include: "*"
+
+spring:
+  flyway:
+    locations: classpath:db/migration/h2
+
+---
+
+spring:
+  profiles: prod
+  datasource:
+    url: jdbc:postgresql://postgres:5432/outbox
+    username: outbox
+    password: outbox
+  flyway:
+    locations: classpath:db/migration/postgres