mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-06 14:35:26 +02:00
refactor: remove redis
This commit is contained in:
@@ -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
|
||||
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user