mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-01-08 04:05:03 +02:00
[Redis] set password via docker-entrypoint.sh
This commit is contained in:
parent
89fb1322c6
commit
c1903f121d
6
data/conf/redis/docker-entrypoint.sh
Executable file
6
data/conf/redis/docker-entrypoint.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cat <<EOF > /redis.conf
|
||||||
|
requirepass $REDISPASS
|
||||||
|
EOF
|
||||||
|
exec redis-server /redis.conf
|
@ -43,9 +43,10 @@ services:
|
|||||||
|
|
||||||
redis-mailcow:
|
redis-mailcow:
|
||||||
image: redis:7-alpine
|
image: redis:7-alpine
|
||||||
command: '--requirepass ${REDISPASS}'
|
entrypoint: /docker-entrypoint.sh
|
||||||
volumes:
|
volumes:
|
||||||
- redis-vol-1:/data/
|
- redis-vol-1:/data/
|
||||||
|
- ./data/conf/redis/docker-entrypoint.sh:/docker-entrypoint.sh:z
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- netfilter-mailcow
|
- netfilter-mailcow
|
||||||
|
Loading…
Reference in New Issue
Block a user