Spotter-VM/lxc-services/redis/lxcfile

24 lines
570 B
Plaintext
Raw Normal View History

IMAGE redis 4.0.12-190620
META title Redis
META desc-cs Pokročilá key-value databáze
META desc-en Advanced key-value store
META type service
META license GPL
LAYER alpine3.9 3.9.4-190620
2018-09-05 17:41:38 +02:00
2018-09-12 16:08:10 +02:00
RUN EOF
2018-09-05 17:41:38 +02:00
# Create OS user (which will be picked up later by apk add)
addgroup -S -g 6379 redis
adduser -S -u 6379 -h /var/lib/redis -s /bin/false -g redis -G redis redis
# Install Redis
apk --no-cache add redis
2018-09-12 16:08:10 +02:00
EOF
2018-09-05 17:41:38 +02:00
2018-09-14 18:13:11 +02:00
MOUNT FILE /srv/redis/conf/redis.conf etc/redis.conf
MOUNT DIR /srv/redis/data var/lib/redis
2018-09-05 17:41:38 +02:00
USER 6379 6379
2018-09-13 16:21:16 +02:00
CMD redis-server /etc/redis.conf