-
Notifications
You must be signed in to change notification settings - Fork 20
/
jndi.yml
48 lines (47 loc) · 2.27 KB
/
jndi.yml
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
45
46
47
48
# This file is imported from geoserver.yml and allows to configure multiple JNDI Datasources
# using standard spring-boot externalized configuration, without having to tweak
# application container specific fongiuration files (i.e. tomcat, jetty, etc. xml config files)
#
# Each JNDI datasource configuration properties is named after the jndi.datasources property,
# has the following attribtues:
#
# * enabled: Whether the datasource shall be configured. Defaults to true.
# * wait-for-it: Whether to wait for the datasource to be ready (connection succeed) at startup
# * wait-timeout: Timeout in seconds to wait for the datasource to be ready. Defaults to 60
# * url: JDBC connection url. Required.
# * username: Database username to connect as
# * password: Database user password
# * driver-class-name: JDBC driver class name. Optional, should be inferred from the URL
# * maximum-pool-size: Maximum number of connections in the pool. Defaults to 10.
# * minimum-idle: Minimum number of connections kept alive in the pool. Defaults to 2.
# * connection-timeout: Connection timeout in milliseconds. Defaults to 250, which is also the minimum allowed value
# * idle-timeout: Maximum time in milliseconds to keep a connection alive while idle. Defaults to 60000.
#
# The data source names will be bound as java:comp/env/jdbc/<name> (e.g. java:comp/env/jdbc/ds1 for
# a datasource called jndi.datasources.ds1):
#
jndi:
datasources:
postgis:
enabled: ${jndi.postgis.enabled:false}
wait-for-it: true
wait-timeout: 10
url: jdbc:postgresql://postgis:5432/postgis
username: postgis
password: postgis
maximum-pool-size: 10
minimum-idle: 2
connection-timeout: 500
idle-timeout: 60000
pgconfig:
enabled: ${jndi.pgconfig.enabled:false}
schema: ${pgconfig.schema:pgconfig}
wait-for-it: true
wait-timeout: 10
url: jdbc:postgresql://${pgconfig.host:pgconfigdb}:${pgconfig.port:5432}/${pgconfig.database:pgconfig}
username: ${pgconfig.username:pgconfig}
password: ${pgconfig.password:pgconfig}
maximum-pool-size: ${pgconfig.maxConnections:10}
minimum-idle: ${pgconfig.minConnections:0}
connection-timeout: ${pgconfig.connectionTimeout:2500}
idle-timeout: ${pgconfig.idleTimeout:30000}