diff --git a/pom.xml b/pom.xml index 27b1f2df..86e7a4d7 100644 --- a/pom.xml +++ b/pom.xml @@ -153,6 +153,11 @@ swagger-annotations 2.2.15 + + org.postgresql + postgresql + 42.7.3 + diff --git a/server/pom.xml b/server/pom.xml index 32328ba2..c810fbd4 100644 --- a/server/pom.xml +++ b/server/pom.xml @@ -54,6 +54,11 @@ h2 runtime + + org.postgresql + postgresql + runtime + ${project.groupId} jmh-data-model diff --git a/server/src/main/resources/application-postgres.properties b/server/src/main/resources/application-postgres.properties new file mode 100644 index 00000000..247e902b --- /dev/null +++ b/server/src/main/resources/application-postgres.properties @@ -0,0 +1,6 @@ +spring.datasource.url=jdbc:postgresql://${POSTGRES_HOST:localhost}:${POSTGRES_PORT:2132}/${SPRING_DATASOURCE_DATABASE:benchscape}?createDatabaseIfNotExist=true +spring.datasource.username=${SPRING_DATASOURCE_USERNAME:benchscape} +spring.datasource.password=${SPRING_DATASOURCE_PASSWORD:benchscape} +# TODO Replace by liquibase or flyway +spring.jpa.hibernate.ddl-auto=create +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect \ No newline at end of file