Skip to content

Commit

Permalink
Redis ok
Browse files Browse the repository at this point in the history
  • Loading branch information
pbdco committed Dec 24, 2024
1 parent a374f2d commit c4f0a41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/docker-redis/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ services:
redis:
image: redis:7.2-alpine
command: >
sh -c "envsubst < /usr/local/etc/redis/redis.conf.template > /usr/local/etc/redis/redis.conf &&
sh -c "apk add --no-cache gettext &&
envsubst < /usr/local/etc/redis/redis.conf.template > /usr/local/etc/redis/redis.conf &&
redis-server /usr/local/etc/redis/redis.conf"
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf.template:ro
Expand All @@ -21,7 +22,7 @@ services:
memory: 512M
security_opt:
- no-new-privileges:true
read_only: true
read_only: false # Temporarily needed for apk add
tmpfs:
- /tmp
- /var/run
Expand Down

0 comments on commit c4f0a41

Please sign in to comment.