We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f238c68 commit e95ed01Copy full SHA for e95ed01
infra/main.tf
@@ -96,10 +96,11 @@ resource "google_compute_instance" "redis_vm" {
96
}
97
98
metadata_startup_script = <<EOF
99
- docker run -d --name redis \
100
- -p 6379:6379 \
101
- --restart always \
102
- redis:alpine redis-server --protected-mode no
+ docker rm -f redis || true
+ docker run -d --name redis \
+ -p 6379:6379 \
+ --restart always \
103
+ redis:alpine redis-server --protected-mode no
104
EOF
105
106
tags = ["redis-vm"]
0 commit comments