1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-23 02:04:46 +02:00

[Redis] set password via docker-entrypoint.sh

This commit is contained in:
FreddleSpl0it 2024-11-13 16:48:30 +01:00
parent 89fb1322c6
commit c1903f121d
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,6 @@
#!/bin/sh
cat <<EOF > /redis.conf
requirepass $REDISPASS
EOF
exec redis-server /redis.conf

View File

@ -43,9 +43,10 @@ services:
redis-mailcow:
image: redis:7-alpine
command: '--requirepass ${REDISPASS}'
entrypoint: /docker-entrypoint.sh
volumes:
- redis-vol-1:/data/
- ./data/conf/redis/docker-entrypoint.sh:/docker-entrypoint.sh:z
restart: always
depends_on:
- netfilter-mailcow