2016-05-06 22:04:02 +08:00
|
|
|
FROM redis:latest
|
|
|
|
|
2018-03-16 21:09:15 +08:00
|
|
|
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
|
2016-05-06 22:04:02 +08:00
|
|
|
|
2017-05-04 15:22:32 +08:00
|
|
|
## For security settings uncomment, make the dir, copy conf, and also start with the conf, to use it
|
|
|
|
#RUN mkdir -p /usr/local/etc/redis
|
2016-06-03 06:50:11 +08:00
|
|
|
#COPY redis.conf /usr/local/etc/redis/redis.conf
|
|
|
|
|
|
|
|
VOLUME /data
|
2016-05-06 22:04:02 +08:00
|
|
|
|
|
|
|
EXPOSE 6379
|
2016-06-03 06:50:11 +08:00
|
|
|
|
2017-05-04 15:22:32 +08:00
|
|
|
#CMD ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
2016-06-03 06:50:11 +08:00
|
|
|
CMD ["redis-server"]
|