1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00

update redis

This commit is contained in:
kev 2017-01-20 01:29:07 +08:00
parent f9c54988ec
commit a59f35451e
3 changed files with 9 additions and 7 deletions

@ -7,7 +7,9 @@ nodebb:
restart: always
redis:
image: redis
image: redis:alpine
ports:
- "127.0.0.1:6379:6379"
volumes:
- ./data:/data
restart: always

@ -5,13 +5,11 @@
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
RUN set -ex \
&& apk add --no-cache redis \
&& sed -i 's/^daemonize yes/daemonize no/' /etc/redis.conf
RUN apk add --no-cache redis
WORKDIR /var/lib/redis/
VOLUME /var/lib/redis/
WORKDIR /data
VOLUME /data
EXPOSE 6379
CMD ["redis-server", "/etc/redis.conf"]
CMD ["redis-server"]

@ -2,4 +2,6 @@ redis:
image: easypi/redis-arm
ports:
- "6379:6379"
volumes:
- ./data:/var/lib/redis
restart: always