Hi
I am trying to connect to RedisJson module that will include my custom redis.conf file without success
let’s start if I have dockerFile with only:
FROM redislabs/rejson:latest as rejson
and my code is:
JReJSON jReJSON = new JReJSON(“127.0.0.1”,6379);
jReJSON.set(“MM”,“FOO”);
jReJSON.get(“MM”);
it’s working
But
when i am adding the config file to ehiter “/etc/redis.conf” or under “/usr/local/etc/redis/redis.conf”
and in the config file, I uncomment the load of the module the client refuses to connect
dockerFile:
FROM redislabs/rejson:latest as rejson
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY “redisM.conf” “/usr/local/etc/redis/redis.conf”
COPY . /usr/src/app
CMD [“redis-server”, “/usr/local/etc/redis/redis.conf”]
also the same for:
FROM redis
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY “redis.conf” “/etc/redis.conf”
COPY “rejson.so” “/usr/src/app/modules/rejson.so”
COPY . /usr/src/app
CMD [“redis-server”, “/etc/redis.conf”]
When I explore the docker container using :
docker exec -t -i mycontainer /bin/bash
I can see and confirm it’s my conf file.
p.s
in my conf file, I changed protected-mode to no
and bind my localhost