From 2584e263fcc3ac5cb19072a52d99c79062d10b76 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sat, 27 Jan 2018 14:31:11 +0100 Subject: [PATCH] Make a proper conf mount for Redis --- redis.sh | 6 +++--- redis/etc/init.d/redis | 2 +- redis/srv/redis/{ => conf}/redis.conf | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename redis/srv/redis/{ => conf}/redis.conf (100%) diff --git a/redis.sh b/redis.sh index 82d4ac7..fdf60dc 100755 --- a/redis.sh +++ b/redis.sh @@ -5,9 +5,9 @@ SOURCE_DIR=$(realpath $(dirname "${0}"))/redis docker build -t redis ${SOURCE_DIR} # Configure Redis -mkdir -p /srv/redis -cp ${SOURCE_DIR}/srv/redis/redis.conf /srv/redis/redis.conf -chown -R 6379:6379 /srv/redis +mkdir -p /srv/redis/conf /srv/redis/data +cp ${SOURCE_DIR}/srv/redis/conf/redis.conf /srv/redis/conf/redis.conf +chown -R 6379:6379 /srv/redis/data # Configure Redis service cp ${SOURCE_DIR}/etc/init.d/redis /etc/init.d/redis diff --git a/redis/etc/init.d/redis b/redis/etc/init.d/redis index 3086eac..7c1ca55 100755 --- a/redis/etc/init.d/redis +++ b/redis/etc/init.d/redis @@ -11,7 +11,7 @@ start() { /usr/bin/docker run -d --rm \ --name redis \ -h redis \ - -v /srv/redis/redis.conf:/etc/redis.conf \ + -v /srv/redis/conf/redis.conf:/etc/redis.conf \ -v /srv/redis/data:/var/lib/redis \ redis } diff --git a/redis/srv/redis/redis.conf b/redis/srv/redis/conf/redis.conf similarity index 100% rename from redis/srv/redis/redis.conf rename to redis/srv/redis/conf/redis.conf