feat: add redis

This commit is contained in:
2026-10-21 11:01:29 +03:00
parent ab2bbeef83
commit 552b74eb95
10 changed files with 240 additions and 9 deletions
+7
View File
@@ -15,6 +15,10 @@ services:
timeout: 3s
retries: 15
redis:
image: redis:7.4.1-alpine
command: ["redis-server", "--save", "", "--appendonly", "no"]
tests:
build:
context: .
@@ -22,6 +26,9 @@ services:
image: mtusi-messenger-lab2-test:dev
environment:
DATABASE_URL: postgresql://test:test@postgres:5432/messenger_test?connection_limit=20
CACHE_URL: redis://redis:6379/0
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started