-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathcompose.yml
More file actions
56 lines (53 loc) · 1.66 KB
/
Copy pathcompose.yml
File metadata and controls
56 lines (53 loc) · 1.66 KB
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
#
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
# distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
version: '3.8'
services:
db:
image: mysql:8.4
container_name: mifos-mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: mifos_flowable
MYSQL_USER: mifos
MYSQL_PASSWORD: password
ports:
- "3307:3306"
volumes:
- mysql-data:/var/lib/mysql
command: --mysql-native-password=ON
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
app:
build: .
container_name: mifos-workflow-app
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://db:3306/mifos_flowable?characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true
SPRING_DATASOURCE_USERNAME: mifos
SPRING_DATASOURCE_PASSWORD: password
DB_PASSWORD: password
FINERACT_PASSWORD: password
SERVER_PORT: 8081
WORKFLOW_FINERACT_BASEURL: https://host.docker.internal:8443/fineract-provider/api/v1/
JAVA_TOOL_OPTIONS: "-Djavax.net.ssl.trustStore=/tmp/cacerts -Djavax.net.ssl.trustStorePassword=changeit -Djavax.net.ssl.trustAll=true"
WORKFLOW_FINERACT_VALIDATESSL: false
ports:
- "8081:8081"
depends_on:
db:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
command: >
/bin/sh -c "
cp /opt/java/openjdk/lib/security/cacerts /tmp/cacerts &&
java -jar /app/app.jar
"
volumes:
mysql-data: