From 429247cd7d13c95812ad763686ba9a9f828e6582 Mon Sep 17 00:00:00 2001 From: Viswamedha Nalabotu Date: Sun, 18 Jan 2026 15:09:54 +0000 Subject: [PATCH] Added redis service --- compose/dev/docker-compose.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/compose/dev/docker-compose.yml b/compose/dev/docker-compose.yml index a337dff..8051d45 100644 --- a/compose/dev/docker-compose.yml +++ b/compose/dev/docker-compose.yml @@ -45,15 +45,28 @@ services: environment: POSTGRES_HOST_AUTH_METHOD: trust volumes: - - postgres_data:/var/lib/postgresql/data + - fyp_postgres_data:/var/lib/postgresql/data ports: - '0.0.0.0:5432:5432' healthcheck: - test: ['CMD-SHELL', "pg_isready -h 127.0.0.1 -p 5432 -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] + test: ['CMD-SHELL', 'pg_isready -h 127.0.0.1 -p 5432 -U ${POSTGRES_USER} -d ${POSTGRES_DB}'] + interval: 5s + timeout: 3s + retries: 5 + + fyp-redis-dev: + container_name: fyp-redis-dev + image: redis:7-alpine + ports: + - '0.0.0.0:6379:6379' + volumes: + - fyp_redis_data:/data + healthcheck: + test: ["CMD", "redis-cli", "ping"] interval: 5s timeout: 3s retries: 5 volumes: - postgres_data: - \ No newline at end of file + fyp_postgres_data: + fyp_redis_data: