forked from mojaloop/central-ledger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mojaloop/#3078): get /trans callback is wrong for exp trans (moj…
…aloop#938) feat(mojaloop/#3078): get /transfers callback is wrong for expired transfers - mojaloop/project#3078 - removed incorrect logic from get-handler which would throw an exception when the transfer-state was TransferInternalState.EXPIRED_RESERVED - updated unit tests to reflect this change chore: enhancements for local functional and dev environment setups - updated main readme with instructions on how to run functional tests using the ml-core-test-harness - added docker compose for local dev with updated instructions on main readme - added postman script to use against populateData scripts under test/util folder chore: enhancements for local functional and dev environment setups - updated main readme with instructions on how to run functional tests using the ml-core-test-harness - added docker compose for local dev with updated instructions on main readme chore: updated dependencies and audits with approrpriate commets
- Loading branch information
Showing
13 changed files
with
1,165 additions
and
343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
version: "3.7" | ||
services: | ||
## startup central-ledger to run any migrations. You will need to manually start central-ledger using `npm start` | ||
central-ledger: | ||
image: mojaloop/central-ledger:local | ||
deploy: | ||
replicas: 1 | ||
user: root | ||
build: | ||
context: . | ||
cache_from: | ||
- mojaloop/central-ledger | ||
- central-ledger | ||
container_name: cl_central-ledger | ||
command: | ||
- "sh" | ||
- "-c" | ||
- "sh /opt/wait-for/wait-for-central-ledger.sh && npm run migrate" | ||
ports: | ||
- "3001:3001" | ||
volumes: | ||
- ./docker/central-ledger/default.json:/opt/app/config/default.json | ||
- ./docker/wait-for:/opt/wait-for | ||
environment: | ||
- LOG_LEVEL=info | ||
- CSL_LOG_TRANSPORT=file | ||
- CLEDG_MONGODB__DISABLED=false | ||
networks: | ||
- cl-mojaloop-net | ||
depends_on: | ||
- mysql | ||
- kafka | ||
- objstore | ||
healthcheck: | ||
test: ["CMD", "sh", "-c" ,"apk --no-cache add curl", "&&", "curl", "http://localhost:3001/health"] | ||
timeout: 20s | ||
retries: 10 | ||
interval: 30s | ||
|
||
## override ml-api-adapter to ignore health checks for central-ledger | ||
ml-api-adapter: | ||
image: mojaloop/ml-api-adapter:latest | ||
container_name: cl_ml-api-adapter | ||
deploy: | ||
replicas: 1 | ||
user: root | ||
command: | ||
- "sh" | ||
- "-c" | ||
- "sh /opt/wait-for/wait-for-ml-api-adapter.sh && node src/api/index.js" | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- ./docker/ml-api-adapter/default.json:/opt/app/config/default.json | ||
- ./docker/wait-for:/opt/wait-for | ||
environment: | ||
- LOG_LEVEL=info | ||
networks: | ||
- cl-mojaloop-net | ||
depends_on: | ||
- kafka | ||
## We override the healthcheck here so we can start ml-api-adapter without the central-ledger running in docker, so we can start it locally | ||
healthcheck: {} |
Oops, something went wrong.