Skip to content

Redis not obeying docker volume mounts. #6793

Answered by NKNdevs
NKNdevs asked this question in Self Hosting
Discussion options

You must be logged in to vote

OK, so I'm now using
volumes:
- ./redis.conf:/redis.conf
- redis-data:/data
In the docker config for the redis container, and it seems to be working. The dump.rdb is being created in /var/lib/docker/volumes/redis-data folder and the volumes with long uuids are no longer being created.
Still don't quite understand the purpose of - ./redis.conf:/redis.conf
It creates a directory in the docker compose working directory, owned by root and mapped to the /redis.conf directory in the container, both of which are empty. However the original problem has now gone away so I'll leave it here.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@NKNdevs
Comment options

Answer selected by NKNdevs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants