This commit is contained in:
2026-02-03 22:20:03 -03:00
parent aea93418c5
commit db298babfc
14 changed files with 672 additions and 0 deletions

28
commands/02-start-redis.sh Executable file
View File

@@ -0,0 +1,28 @@
#! /bin/bash
source .env
redis_path=${APPS_VOLUME}/redis
for p in "${redis_path}"; do
if ! ls ${p} >/dev/null 2>&1; then
echo "Creating ${p} directory..."
mkdir -p ${p}
else
echo "directory exists ${p}"
fi
done
podman run -d --replace \
--name redis \
--hostname redis \
--network container-bridge \
--tz=local \
-v ${redis_path}:/data \
--health-cmd="redis-cli ping" \
--health-interval=10s \
--health-timeout=5s \
--health-retries=5 \
docker.io/redis:6 \
--databases 1
podman generate systemd --new --files --name redis