-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-fineract.yml
66 lines (63 loc) · 2.75 KB
/
docker-compose-fineract.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3.9'
services:
mifos-db-server:
image: postgres:14.1-alpine
restart: always
ports:
- ${DB_PORT}:5432
volumes:
- "./data/db:/var/lib/postgresql/data"
- "./scripts/initdb:/docker-entrypoint-initdb.d/"
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER}"]
interval: 5s
timeout: 10s
retries: 10
mifos-back-server:
image: art3chsolutions/fineract:${FINERACT_VERSION}
restart: always
ports:
- ${FINERACT_PORT}:8443
depends_on:
mifos-db-server:
condition: service_healthy
environment:
- FINERACT_HIKARI_DRIVER_SOURCE_CLASS_NAME=${FINERACT_HIKARI_DRIVER_SOURCE_CLASS_NAME}
- FINERACT_HIKARI_JDBC_URL=${FINERACT_HIKARI_JDBC_URL}
- FINERACT_HIKARI_USERNAME=${DB_USER}
- FINERACT_HIKARI_PASSWORD=${DB_PASSWORD}
- FINERACT_HIKARI_MINIMUM_IDLE=3
- FINERACT_HIKARI_MAXIMUM_POOL_SIZE=10
- FINERACT_HIKARI_IDLE_TIMEOUT=60000
- FINERACT_HIKARI_CONNECTION_TIMEOUT=20000
- FINERACT_HIKARI_TEST_QUERY=SELECT 1
- FINERACT_HIKARI_AUTO_COMMIT=true
- FINERACT_HIKARI_DS_PROPERTIES_CACHE_PREP_STMTS=true
- FINERACT_HIKARI_DS_PROPERTIES_PREP_STMT_CACHE_SIZE=250
- FINERACT_HIKARI_DS_PROPERTIES_PREP_STMT_CACHE_SQL_LIMIT=2048
- FINERACT_HIKARI_DS_PROPERTIES_USE_SERVER_PREP_STMTS=true
- FINERACT_HIKARI_DS_PROPERTIES_USE_LOCAL_SESSION_STATE=true
- FINERACT_HIKARI_DS_PROPERTIES_REWRITE_BATCHED_STATEMENTS=true
- FINERACT_HIKARI_DS_PROPERTIES_CACHE_RESULT_SET_METADATA=true
- FINERACT_HIKARI_DS_PROPERTIES_CACHE_SERVER_CONFIGURATION=true
- FINERACT_HIKARI_DS_PROPERTIES_ELIDE_SET_AUTO_COMMITS=true
- FINERACT_HIKARI_DS_PROPERTIES_MAINTAIN_TIME_STATS=false
- FINERACT_HIKARI_DS_PROPERTIES_LOG_SLOW_QUERIES=true
- FINERACT_HIKARI_DS_PROPERTIES_DUMP_QUERIES_IN_EXCEPTION=true
- FINERACT_DEFAULT_TENANTDB_HOSTNAME=${FINERACT_DEFAULT_TENANTDB_HOSTNAME}
- FINERACT_DEFAULT_TENANTDB_PORT=${DB_PORT}
- FINERACT_DEFAULT_TENANTDB_UID=${DB_USER}
- FINERACT_DEFAULT_TENANTDB_PWD=${DB_PASSWORD}
- FINERACT_DEFAULT_TENANTDB_CONN_PARAMS=${FINERACT_DEFAULT_TENANTDB_CONN_PARAMS}
- FINERACT_DEFAULT_TENANTDB_TIMEZONE=${TIMEZONE}
- FINERACT_DEFAULT_TENANTDB_IDENTIFIER=${FINERACT_DEFAULT_TENANTDB_IDENTIFIER}
- FINERACT_DEFAULT_TENANTDB_NAME=fineract_default
- FINERACT_DEFAULT_TENANTDB_DESCRIPTION=${FINERACT_DEFAULT_TENANTDB_DESCRIPTION}
- JAVA_TOOL_OPTIONS=${JAVA_TOOL_OPTIONS}
healthcheck:
test: curl -kfsS https://127.0.0.1:${FINERACT_PORT}/fineract-provider/actuator/health | grep 'readiness' | wc -l
timeout: 10s
retries: 10