mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-16 23:40:32 +00:00
add separate redis service without persistence
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user