Skip to content

Commit 97b383a

Browse files
committedFeb 24, 2020
initially added redis service to elaisa stack
1 parent 8f3abc1 commit 97b383a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 

‎elaisa.yml

+14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
version: "3.5"
22

33
services:
4+
5+
# redis cache store
6+
cache:
7+
image: redis:6.0-rc1-alpine
8+
# when you restart Redis it will re-play the AOF to rebuild the state.
9+
# source: https://redis.io/topics/persistence
10+
command: ["redis-server", "--appendonly", "yes"]
11+
volumes:
12+
- 'redis:/data/cache'
13+
networks:
14+
- database
15+
416
# mongo database
517
db:
618
image: mongo:4.0.3
@@ -127,6 +139,8 @@ networks:
127139
# persist on the host and will survive restarts of containers
128140
# - docker volume create mongodb
129141
volumes:
142+
redis:
143+
external: true
130144
mongodb:
131145
external: true
132146
# stores time-series db for metrics

0 commit comments

Comments
 (0)
Please sign in to comment.