mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +00:00
add separate redis service without persistence
This commit is contained in:
@@ -31,7 +31,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "4000:4000"
|
- "4000:4000"
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis-no-persistence
|
||||||
environment:
|
environment:
|
||||||
<<: *common-server-environment
|
<<: *common-server-environment
|
||||||
|
|
||||||
@@ -42,7 +42,7 @@ services:
|
|||||||
build: .
|
build: .
|
||||||
command: npm run test
|
command: npm run test
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis-no-persistence
|
||||||
environment:
|
environment:
|
||||||
<<: *common-server-environment
|
<<: *common-server-environment
|
||||||
|
|
||||||
@@ -52,3 +52,12 @@ services:
|
|||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "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