refactor: remove redis

This commit is contained in:
Mauricio Siu
2024-09-16 15:16:51 -06:00
parent d8d0b60cb3
commit c84d39a20f
2 changed files with 5 additions and 32 deletions

View File

@@ -73,7 +73,6 @@ const connectToServer = async (serverId: string, logPath: string) => {
${createTraefikInstance()}
${installNixpacks()}
${installBuildpacks()}
${setupRedis()}
`;
client.exec(bashCommand, (err, stream) => {
@@ -279,21 +278,3 @@ const installBuildpacks = () => `
echo "Buildpacks version 0.35.0 installed ✅"
fi
`;
const setupRedis = () => `
# Check if redis is already installed
if docker service ls | grep -q 'dokploy-redis'; then
echo "Redis already installed ✅"
else
# Install Redis
docker service create \
--name dokploy-redis \
--replicas 1 \
--constraint 'node.role==manager' \
--mount type=volume,source=redis-data-volume,target=/data \
--network dokploy-network \
--publish target=6379,published=6379,protocol=tcp,mode=host \
redis:7
fi
`;