Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(build): add a standalone Redis mode in docker-compose installation (#1661)

Sampras Lopesee1f6ccb4cde
diff --git a/config/docker_compose.toml b/config/docker_compose.toml
index 32b35856eb..bd9bccda64 100644
--- a/config/docker_compose.toml
+++ b/config/docker_compose.toml
@@ -57,10 +57,10 @@ vault_encryption_key = ""
vault_private_key = ""
[redis]
-host = "redis-queue"
+host = "redis-standalone"
port = 6379
-cluster_enabled = true
-cluster_urls = ["redis-queue:6379"]
+cluster_enabled = false
+cluster_urls = ["redis-cluster:6379"]
[refund]
max_attempts = 10
diff --git a/docker-compose.yml b/docker-compose.yml
index 42844c486d..1fe487da5a 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -164,7 +164,7 @@ services:
start_period: 30s
timeout: 10s
- redis-queue:
+ redis-cluster:
image: redis:7
deploy:
replicas: ${REDIS_CLUSTER_COUNT:-3}
@@ -179,10 +179,19 @@ services:
- "6379"
- "16379"
+ redis-standalone:
+ image: redis:7
+ labels:
+ - redis
+ networks:
+ - router_net
+ ports:
+ - "6379"
+
redis-init:
image: redis:7
depends_on:
- - redis-queue
+ - redis-cluster
networks:
- router_net
command: "bash -c 'export COUNT=${REDIS_CLUSTER_COUNT:-3}
@@ -203,7 +212,7 @@ services:
\ do
- \ NODE=$COMPOSE_PROJECT_NAME-redis-queue-$$c:6379
+ \ NODE=$COMPOSE_PROJECT_NAME-redis-cluster-$$c:6379
\ echo $$NODE