-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sameer Naik
committed
Jul 12, 2018
1 parent
fa56ed8
commit 960bb37
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
FROM ubuntu:xenial-20180525 | ||
LABEL maintainer="[email protected]" | ||
|
||
ENV REDIS_USER=redis \ | ||
ENV REDIS_VERSION=3.0.6 \ | ||
REDIS_USER=redis \ | ||
REDIS_DATA_DIR=/var/lib/redis \ | ||
REDIS_LOG_DIR=/var/log/redis | ||
|
||
RUN apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y redis-server \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y redis-server=2:${REDIS_VERSION}* \ | ||
&& sed 's/^daemonize yes/daemonize no/' -i /etc/redis/redis.conf \ | ||
&& sed 's/^bind 127.0.0.1/bind 0.0.0.0/' -i /etc/redis/redis.conf \ | ||
&& sed 's/^# unixsocket /unixsocket /' -i /etc/redis/redis.conf \ | ||
|