Feat: data persistence in shared volume

implemented a template to enable data persistence even with a shared volume across containers
This commit is contained in:
2026-04-20 11:39:35 +02:00
parent 11330e6b89
commit a9f9c834be
8 changed files with 113 additions and 18633 deletions
Regular → Executable
+4
View File
@@ -1,6 +1,10 @@
#!/bin/sh
set -e
export CONTAINER_NAME=$(dig -x "$(hostname -i)" +short | cut -d . -f 1)
mkdir -p /data/$CONTAINER_NAME
cd /data/$CONTAINER_NAME
if [ "${1%.tmpl}" != "$1" ]; then
cat "$1" | envsubst > /etc/redis.conf
set -- /etc/redis.conf