Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Redis Stack on Docker #155

Open
gowizzard opened this issue Apr 17, 2023 · 0 comments
Open

Run Redis Stack on Docker #155

gowizzard opened this issue Apr 17, 2023 · 0 comments

Comments

@gowizzard
Copy link

Hi all, I've been sitting on the issue with the bind mount of the dump.rdb file for quite a long time now. I always wondered that after a restart the database was empty, although I set the path as specified in the doc.

I took a look at the container content once and found out that the path was set to /, so the dump.rdb was not in the /data/redis directory, but directly in / and the container then reloaded it every time I started my Docker Compose.

I then solved the whole thing via a redis.conf file, which I set via a bind mount and call via CMD in Docker Compose. The section looks like this:

...
dir /data/redis
...

In general, this information would have been cool, since you specify the whole thing in your example:

docker run -v /local-data/:/data redis/redis-stack:latest

This also works beautifully with the redis:latest (c9bee82a203a) Docker container and you don't need any additional configuration. With the current redis/redis-stack-server:latest (580cd2320a9b) version but as said not. Does anyone else have the same problems?

Thanks a lot
Jonas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant