| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you under the Apache License, Version 2.0 (the |
| # "License"); you may not use this file except in compliance |
| # with the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, |
| # software distributed under the License is distributed on an |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| # KIND, either express or implied. See the License for the |
| # specific language governing permissions and limitations |
| # under the License. |
| |
| services: |
| fineract-db: |
| image: postgres:15 |
| container_name: fineract-db |
| ports: |
| - '5433:5432' |
| environment: |
| - POSTGRES_USER=postgres |
| - POSTGRES_PASSWORD=postgres |
| volumes: |
| - fineract-postgres-data:/var/lib/postgresql/data |
| healthcheck: |
| test: ['CMD-SHELL', 'pg_isready -U postgres'] |
| interval: 5s |
| timeout: 5s |
| retries: 15 |
| |
| fineract-backend: |
| image: apache/fineract:latest |
| container_name: fineract-backend |
| depends_on: |
| fineract-db: |
| condition: service_healthy |
| ports: |
| - '8443:8443' |
| environment: |
| - FINERACT_HIKARI_JDBC_URL=jdbc:postgresql://fineract-db:5432/fineract_tenants |
| - FINERACT_HIKARI_USERNAME=postgres |
| - FINERACT_HIKARI_PASSWORD=postgres |
| - FINERACT_DEFAULT_TENANTDB_HOSTNAME=fineract-db |
| - FINERACT_DEFAULT_TENANTDB_PORT=5432 |
| - FINERACT_DEFAULT_TENANTDB_UID=postgres |
| - FINERACT_DEFAULT_TENANTDB_PWD=postgres |
| - FINERACT_DEFAULT_TENANTDB_NAME=fineract_default |
| - FINERACT_NODE_ID=1 |
| - FINERACT_REMOTE_JOB_MESSAGE_HANDLER_SPRING_EVENTS_ENABLED=true |
| |
| volumes: |
| fineract-postgres-data: |