Add a reasonable default Redis persistence

Despite the claim of the README.md, `PostgreSQL and Redis data is persisted in Docker volumes`, this is not actually the case. The volume is present, but Redis is not configured to use it.

This question comes up on the forum monthly, if not more frequently. Choose a reasonable default for people to build on.
This commit is contained in:
Brian Conway 2024-01-04 19:03:12 -06:00
parent 24ce6fa78e
commit d5e0d92393
No known key found for this signature in database

View File

@ -65,6 +65,7 @@ services:
redis: redis:
image: redis:7-alpine image: redis:7-alpine
restart: unless-stopped restart: unless-stopped
command: redis-server --save 300 1 --save 60 100 --appendonly no
volumes: volumes:
- redisdata:/data - redisdata:/data