Skip to content

Commit 4509e1d

Browse files
initial
0 parents  commit 4509e1d

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM alpine:3.8
2+
3+
RUN apk add --no-cache redis
4+
ADD /run.sh /run.sh
5+
RUN chmod +x /run.sh
6+
7+
CMD ['/run.sh']

run.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
mkdir -p /efs/redis
3+
/usr/bin/redis-server \
4+
--protected-mode no \
5+
--maxmemory-policy allkeys-lru \
6+
--maxmemory ${REDIS_MEMORY:-64M} \
7+
--append-only yes \
8+
--dir /efs/redis \
9+
--appendfsync everysec

0 commit comments

Comments
 (0)