From 7be6f97a98429485ff35b12798bdb8e7b8facf19 Mon Sep 17 00:00:00 2001 From: Szymon Szukalski Date: Thu, 25 Jul 2024 10:23:47 +1000 Subject: Containerise application and switch to PostgreSQL --- src/main/resources/application.properties | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/main/resources/application.properties') diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 788b1a5..42e8f9a 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,11 +1,12 @@ spring.application.name=markr -# H2 Database configuration -spring.datasource.url=jdbc:h2:mem:testdb -spring.datasource.driverClassName=org.h2.Driver -spring.datasource.username=sa -spring.datasource.password=password -spring.jpa.database-platform=org.hibernate.dialect.H2Dialect -spring.h2.console.enabled=true -spring.h2.console.path=/h2-console +# PostgreSQL Configuration +spring.datasource.url=jdbc:postgresql://localhost:5432/markr +spring.datasource.username=markr_prod +spring.datasource.password=CpfzDA3nR3jH9Ky4 +spring.datasource.driver-class-name=org.postgresql.Driver + +# Hibernate Configuration +spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect spring.jpa.hibernate.ddl-auto=update +spring.jpa.show-sql=false \ No newline at end of file -- cgit v1.2.3