From 5afd79831246665d58831aeb780bc3afa5958a21 Mon Sep 17 00:00:00 2001 From: John Rofrano Date: Tue, 31 Oct 2023 20:15:41 -0400 Subject: [PATCH] Make redis restart always --- .devcontainer/scripts/setup-lab.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/scripts/setup-lab.sh b/.devcontainer/scripts/setup-lab.sh index 945862d..690f804 100644 --- a/.devcontainer/scripts/setup-lab.sh +++ b/.devcontainer/scripts/setup-lab.sh @@ -1,7 +1,7 @@ #!/bin/bash echo "Setting up Docker lab environment..." docker pull python:3.11-slim -docker run -d --name redis -p 6379:6379 -v redis:/data redis:6-alpine +docker run -d --name redis --restart always -p 6379:6379 -v redis:/data redis:6-alpine echo Setting up registry.local... sudo bash -c "echo '127.0.0.1 cluster-registry' >> /etc/hosts" echo "Setup complete" \ No newline at end of file