Redis with custom config

The default redis deployed by railway uses the bitnami redis image. I want to extend the functionality and use a custom redis config (redis.conf) What I tried: Dockerfile:
# Use the specified image as the base
FROM bitnami/redis:latest

# Copy the Redis configuration file from the local path to the container
COPY redis.conf /opt/bitnami/redis/mounted-etc/

CMD [ "/opt/bitnami/scripts/redis/run.sh" ]
# Use the specified image as the base
FROM bitnami/redis:latest

# Copy the Redis configuration file from the local path to the container
COPY redis.conf /opt/bitnami/redis/mounted-etc/

CMD [ "/opt/bitnami/scripts/redis/run.sh" ]
I have also attached a volume at the path /bitname. But I keep getting the error mkdir: cannot create directory '/bitnami/redis': Permission denied The railawy redis works out of the box, so want to know what is the best way to get this working? (since railway does not allow passing in arguments to docker run) Not related to Railway: I am not able to run this locally either, I tried running it with the command docker run -e ALLOW_EMPTY_PASSWORD=yes -v $HOME/data:/bitnami/redis/data redis-temp (redis-temp is the name of the image I built), but this gives the Can't open or create append-only dir appendonlydir: Permission denied error. Not sure what the correct answer here is
No description
4 Replies
Percy
Percy13mo ago
Project ID: 3b58a837-a508-4969-a318-7c37050d177e
Mihir Gupta
Mihir Gupta13mo ago
3b58a837-a508-4969-a318-7c37050d177e
Brody
Brody13mo ago
what are you trying to configure? maybe what you're trying to configure can be done with environment variables or command flags on the provided redis template?
Medim
Medim13mo ago
May be a stupid question, but didn't u mistype? u said u created a volume on /bitname while it uses /bitnami
Want results from more Discord servers?
Add your server