Skip to content

Commit

Permalink
Added the REDIS_ARGS environment variable and configured 1k databases…
Browse files Browse the repository at this point in the history
… by default.

Signed-off-by: Hermann Mayer <hermann.mayer92@gmail.com>
  • Loading branch information
Jack12816 committed Jul 4, 2024
1 parent b1175dc commit e4329ae
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions 6.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ MAINTAINER Hermann Mayer "hermann.mayer@hausgold.de"

# You can change this environment variable on run's with -e
ENV MDNS_HOSTNAME=redis.local
ENV REDIS_ARGS='--databases 1000'

# Install system packages
RUN apt-get update -yqqq && \
Expand Down
2 changes: 1 addition & 1 deletion 6.2/config/supervisor/redis.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[program:redis]
priority=20
directory=/tmp
command=/usr/local/bin/docker-entrypoint.sh redis-server
command=/usr/local/bin/docker-entrypoint.sh redis-server %(ENV_REDIS_ARGS)s
user=root
autostart=true
autorestart=true
Expand Down
1 change: 1 addition & 0 deletions 7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ MAINTAINER Hermann Mayer "hermann.mayer@hausgold.de"

# You can change this environment variable on run's with -e
ENV MDNS_HOSTNAME=redis.local
ENV REDIS_ARGS='--databases 1000'

# Install system packages
RUN apt-get update -yqqq && \
Expand Down
2 changes: 1 addition & 1 deletion 7.0/config/supervisor/redis.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[program:redis]
priority=20
directory=/tmp
command=/usr/local/bin/docker-entrypoint.sh redis-server
command=/usr/local/bin/docker-entrypoint.sh redis-server %(ENV_REDIS_ARGS)s
user=root
autostart=true
autorestart=true
Expand Down
1 change: 1 addition & 0 deletions 7.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ MAINTAINER Hermann Mayer "hermann.mayer@hausgold.de"

# You can change this environment variable on run's with -e
ENV MDNS_HOSTNAME=redis.local
ENV REDIS_ARGS='--databases 1000'

# Install system packages
RUN apt-get update -yqqq && \
Expand Down
2 changes: 1 addition & 1 deletion 7.2/config/supervisor/redis.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[program:redis]
priority=20
directory=/tmp
command=/usr/local/bin/docker-entrypoint.sh redis-server
command=/usr/local/bin/docker-entrypoint.sh redis-server %(ENV_REDIS_ARGS)s
user=root
autostart=true
autorestart=true
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ redis:
environment:
# Mind the .local suffix
- MDNS_HOSTNAME=redis.test.local
# We allow additional redis-server arguments via: (default)
- REDIS_ARGS="--databases 1000"
ports:
# The ports are just for you to know when configure your
# container links, on depended containers
Expand Down
2 changes: 1 addition & 1 deletion config/supervisor/redis.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[program:redis]
priority=20
directory=/tmp
command=/usr/local/bin/docker-entrypoint.sh redis-server
command=/usr/local/bin/docker-entrypoint.sh redis-server %(ENV_REDIS_ARGS)s
user=root
autostart=true
autorestart=true
Expand Down

0 comments on commit e4329ae

Please sign in to comment.