Skip to content
Snippets Groups Projects
Commit 75123c10 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

using a persistent redis image

parent 8e1e1496
No related branches found
No related tags found
No related merge requests found
FROM redis:7
COPY redis.conf /usr/local/etc/redis/redis.conf
CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
\ No newline at end of file
# 5GB Storage for now
maxmemory 5368709120
# Redis is used as persistent storage here: No eviction
maxmemory-policy noeviction
# Use Appendonly for persistence
# Disable regular snapshots: using AOF
save ""
appendonly yes
appendfsync always
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 128mb
\ No newline at end of file
...@@ -2,6 +2,7 @@ version: '3' ...@@ -2,6 +2,7 @@ version: '3'
volumes: volumes:
nodecache: {} nodecache: {}
redisdata: {}
services: services:
express: express:
...@@ -16,4 +17,8 @@ services: ...@@ -16,4 +17,8 @@ services:
ports: ports:
- 8080:3000 - 8080:3000
redis: redis:
image: redis:7 build:
context: ./build/redis
volumes:
- redisdata:/data
restart: unless-stopped
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment