forked from quarkusio/quarkus-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.properties
44 lines (40 loc) · 2.08 KB
/
application.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# General settings
quarkus.log.level=INFO
%test.quarkus.log.level=INFO
%dev.quarkus.log.level=INFO
quarkus.native.native-image-xmx=5G
# Hibernate ORM settings
quarkus.hibernate-orm.database.generation=none
quarkus.hibernate-orm.multitenant=SCHEMA
%database.quarkus.hibernate-orm.multitenant=DATABASE
# SCHEMA Tenant Configuration (environment variable expansion is used to facilitate docker-compose setup)
quarkus.datasource.db-kind=postgresql
quarkus.datasource.username=quarkus_test
quarkus.datasource.password=quarkus_test
quarkus.datasource.jdbc.url=jdbc:postgresql://${DB_HOST_TENANT_BASE:localhost}:${DB_PORT_TENANT_BASE:5432}/quarkus_test
quarkus.datasource.jdbc.max-size=8
quarkus.datasource.jdbc.min-size=2
quarkus.flyway.schemas=base,mycompany
quarkus.flyway.locations=schema
quarkus.flyway.migrate-at-start=true
%database.quarkus.flyway.schemas=
%database.quarkus.flyway.locations=classpath:db/migration
%database.quarkus.flyway.migrate-at-start=false
# DATABASE Tenant 'base' Configuration
%database.quarkus.datasource.base.db-kind=postgresql
%database.quarkus.datasource.base.username=quarkus_test
%database.quarkus.datasource.base.password=quarkus_test
%database.quarkus.datasource.base.jdbc.url=jdbc:postgresql://${DB_HOST_TENANT_BASE:localhost}:${DB_PORT_TENANT_BASE:5432}/quarkus_test
%database.quarkus.datasource.base.jdbc.max-size=8
%database.quarkus.datasource.base.jdbc.min-size=2
%database.quarkus.flyway.base.locations=classpath:database/base
%database.quarkus.flyway.base.migrate-at-start=true
# DATABASE Tenant 'mycompany' Configuration
%database.quarkus.datasource.mycompany.db-kind=postgresql
%database.quarkus.datasource.mycompany.username=mycompany
%database.quarkus.datasource.mycompany.password=mycompany
%database.quarkus.datasource.mycompany.jdbc.url=jdbc:postgresql://${DB_HOST_TENANT_MYCOMPANY:localhost}:${DB_PORT_TENANT_MYCOMPANY:5433}/mycompany
%database.quarkus.datasource.mycompany.jdbc.max-size=8
%database.quarkus.datasource.mycompany.jdbc.min-size=2
%database.quarkus.flyway.mycompany.locations=classpath:database/mycompany
%database.quarkus.flyway.mycompany.migrate-at-start=true