diff --git a/.env b/.env index cf97bae9..922f6051 100644 --- a/.env +++ b/.env @@ -10,10 +10,10 @@ ACCOUNT_LOOKUP_SERVICE_VERSION=v14.2.3 # QUOTING_SERVICE_VERSION=v15.2.1 QUOTING_SERVICE_VERSION=v15.8.0-snapshot.15 ## CL initial baseline with version included in Mojaloop v15.1.0 Helm Release -# CENTRAL_LEDGER_VERSION=v17.0.3 +CENTRAL_LEDGER_VERSION=v17.8.0-snapshot.34 ## Cl latest version ## v17.6.2-snapshot.0 for FX, docker image isn't published due to ci work -CENTRAL_LEDGER_VERSION=local +#CENTRAL_LEDGER_VERSION=local ## CL snapshot release with included fix: JSON.stringify disabled in logResponse function # CENTRAL_LEDGER_VERSION=v17.0.4-snapshot.0 ## Central Ledger version with batch processing capability diff --git a/docker-compose.yml b/docker-compose.yml index 064cb2d2..1e67a2d2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,20 @@ networks: mojaloop-net: name: mojaloop-net +x-redis-node: &REDIS_NODE + image: docker.io/bitnami/redis-cluster:6.2.14 + environment: &REDIS_ENVS + ALLOW_EMPTY_PASSWORD: yes + REDIS_NODES: redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5 + healthcheck: + test: [ "CMD", "redis-cli", "ping" ] + timeout: 2s + networks: + - mojaloop-net + profiles: + - all-services + - fx + services: ## Switch @@ -409,6 +423,32 @@ services: - all-services - fx + redis-node-0: + <<: *REDIS_NODE + environment: + <<: *REDIS_ENVS + REDIS_CLUSTER_CREATOR: yes + depends_on: + - redis-node-1 + - redis-node-2 + - redis-node-3 + - redis-node-4 + - redis-node-5 + ports: + - "16379:6379" + + redis-node-1: + <<: *REDIS_NODE + redis-node-2: + <<: *REDIS_NODE + redis-node-3: + <<: *REDIS_NODE + redis-node-4: + <<: *REDIS_NODE + redis-node-5: + <<: *REDIS_NODE + + ## Testing Toolkit mojaloop-testing-toolkit: image: mojaloop/ml-testing-toolkit:${TEST_TTK_SVC_VERSION} diff --git a/docker/config-modifier/configs/central-ledger.js b/docker/config-modifier/configs/central-ledger.js index 180af77e..e6faf28c 100644 --- a/docker/config-modifier/configs/central-ledger.js +++ b/docker/config-modifier/configs/central-ledger.js @@ -17,8 +17,11 @@ module.exports = { }, "PROXY_CACHE": { "enabled": true, + "type": "redis-cluster", "proxyConfig": { - "host": "redis", + "cluster": [ + { "host": "redis-node-0", "port": 6379 } + ] } }, "KAFKA": {