add separate redis service without persistence

This commit is contained in:
2025-03-27 09:21:17 -07:00
parent 8ef161ae3b
commit 7761e09b0e

View File

@@ -31,7 +31,7 @@ services:
ports:
- "4000:4000"
depends_on:
- redis
- redis-no-persistence
environment:
<<: *common-server-environment
@@ -42,7 +42,7 @@ services:
build: .
command: npm run test
depends_on:
- redis
- redis-no-persistence
environment:
<<: *common-server-environment
@@ -52,3 +52,12 @@ services:
image: redis:alpine
ports:
- "6379:6379"
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf
redis-no-persistence:
image: redis:alpine
ports:
- "6379:6379"