2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01:00

add redis

This commit is contained in:
kev
2017-01-19 22:06:07 +08:00
parent b64cd4562a
commit f9c54988ec
5 changed files with 27 additions and 0 deletions

20
redis/README.md Normal file
View File

@@ -0,0 +1,20 @@
redis
=====
![](https://redis.io/images/redis-white.png)
[Redis][1] is an open source key-value store that functions as a data structure server.
## docker-compose.yml
```yaml
redis:
image: redis:alpine
ports:
- "127.0.0.1:6379:6379"
volumes:
- ./data:/data
restart: always
```
[1]: https://redis.io/

17
redis/arm/Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
#
# Dockerfile for redis-arm
#
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
WORKDIR /var/lib/redis/
VOLUME /var/lib/redis/
EXPOSE 6379
CMD ["redis-server", "/etc/redis.conf"]

12
redis/arm/README.md Normal file
View File

@@ -0,0 +1,12 @@
redis-arm
=========
## docker-compose.yml
```yaml
redis:
image: easypi/redis-arm
ports:
- "6379:6379"
restart: always
```

View File

@@ -0,0 +1,5 @@
redis:
image: easypi/redis-arm
ports:
- "6379:6379"
restart: always

7
redis/docker-compose.yml Normal file
View File

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