redis & listening works!!

This commit is contained in:
2024-05-10 15:11:25 +03:00
parent 2a696f96c1
commit 0ebfd11851
10 changed files with 105 additions and 14 deletions

12
dev.yml
View File

@ -13,6 +13,8 @@ services:
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
frontend:
build:
context: frontend
@ -51,3 +53,13 @@ services:
interval: 2s
timeout: 2s
retries: 5
redis:
image: redis:7.2.4-alpine
restart: unless-stopped
ports:
- 6379
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
interval: 2s
timeout: 2s
retries: 5