mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:50 +02:00
update redis
This commit is contained in:
parent
f9c54988ec
commit
a59f35451e
@ -7,7 +7,9 @@ nodebb:
|
|||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis:alpine
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:6379:6379"
|
- "127.0.0.1:6379:6379"
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -5,13 +5,11 @@
|
|||||||
FROM easypi/alpine-arm
|
FROM easypi/alpine-arm
|
||||||
MAINTAINER EasyPi Software Foundation
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
RUN set -ex \
|
RUN apk add --no-cache redis
|
||||||
&& apk add --no-cache redis \
|
|
||||||
&& sed -i 's/^daemonize yes/daemonize no/' /etc/redis.conf
|
|
||||||
|
|
||||||
WORKDIR /var/lib/redis/
|
WORKDIR /data
|
||||||
VOLUME /var/lib/redis/
|
VOLUME /data
|
||||||
|
|
||||||
EXPOSE 6379
|
EXPOSE 6379
|
||||||
|
|
||||||
CMD ["redis-server", "/etc/redis.conf"]
|
CMD ["redis-server"]
|
||||||
|
@ -2,4 +2,6 @@ redis:
|
|||||||
image: easypi/redis-arm
|
image: easypi/redis-arm
|
||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
|
volumes:
|
||||||
|
- ./data:/var/lib/redis
|
||||||
restart: always
|
restart: always
|
||||||
|
Loading…
Reference in New Issue
Block a user