feat(api): Redis integration REST/WS

This commit is contained in:
yassinedorbozgithub
2024-11-15 17:39:12 +01:00
parent e642ea093e
commit 1436b808e2
10 changed files with 275 additions and 19 deletions

View File

@@ -58,3 +58,9 @@ NEXT_PUBLIC_SSO_ENABLED=false
APP_WIDGET_PORT=5173
REACT_APP_WIDGET_API_URL=http://${APP_DOMAIN}:${API_PORT}
REACT_APP_WIDGET_CHANNEL=web-channel
# Redis
APP_REDIS_PORT=9001
REDIS_ENABLED=false
REDIS_HOST=redis
REDIS_PORT=6379

View File

@@ -0,0 +1,7 @@
version: "3.8"
services:
redis:
image: redis/redis-stack:7.2.0-v6
ports:
- ${APP_REDIS_PORT}:8001

View File

@@ -0,0 +1,29 @@
version: "3.8"
services:
api:
networks:
- cache-network
depends_on:
redis:
condition: service_healthy
redis:
container_name: redis
image: redis/redis-stack-server:7.2.0-v6
networks:
- cache-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 10s
retries: 5
start_period: 10s
volumes:
- redis_data:/data
volumes:
redis_data:
networks:
cache-network: