20 lines
1.1 KiB
Text
20 lines
1.1 KiB
Text
/subsystem=datasources/jdbc-driver=mariadb:add(driver-name=mariadb, driver-module-name=org.mariadb.jdbc, driver-xa-datasource-class-name=org.mariadb.jdbc.Driver)
|
|
|
|
cd /subsystem=datasources/data-source=KeycloakDS
|
|
|
|
:write-attribute(name=connection-url, value=jdbc:mariadb://${env.MARIADB_HOST:mariadb}:${env.MARIADB_PORT:3306}/${env.MARIADB_DATABASE:keycloak})
|
|
:write-attribute(name=driver-name, value=mariadb)
|
|
:write-attribute(name=user-name, value=${env.MARIADB_USER:keycloak})
|
|
:write-attribute(name=password, value=${env.MARIADB_PASSWORD:keycloak})
|
|
|
|
:write-attribute(name=check-valid-connection-sql, value="SELECT 1")
|
|
:write-attribute(name=background-validation, value=true)
|
|
:write-attribute(name=background-validation-millis, value=60000)
|
|
|
|
:write-attribute(name=min-pool-size, value=${env.DS_MIN_POOL_SIZE:10})
|
|
:write-attribute(name=max-pool-size, value=${env.DS_MAX_POOL_SIZE:100})
|
|
:write-attribute(name=pool-prefill, value=${env.DS_POOL_PREFILL:true})
|
|
:write-attribute(name=prepared-statements-cache-size, value=${env.DS_PS_CACHE_SIZE:100})
|
|
|
|
:write-attribute(name=flush-strategy, value=IdleConnections)
|
|
:write-attribute(name=use-ccm, value=true)
|