NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Commit

[Redis] set password via docker-entrypoint.sh

c1903f12
FreddleSpl0it <[email protected]> 1 year, 8 months ago
data/conf/redis/docker-entrypoint.sh | 6 ++++++
 docker-compose.yml                   | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100755 data/conf/redis/docker-entrypoint.sh

Diff

diff --git a/data/conf/redis/docker-entrypoint.sh b/data/conf/redis/docker-entrypoint.sh
new file mode 100755
index 00000000..00bdab1b
--- /dev/null
+++ b/data/conf/redis/docker-entrypoint.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+cat <<EOF > /redis.conf
+requirepass $REDISPASS
+EOF
+exec redis-server /redis.conf
diff --git a/docker-compose.yml b/docker-compose.yml
index ccb2a727..6d32da7d 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -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