From 07be3546831107e28cf98179c7411a6120fac9b4 Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Fri, 15 May 2026 12:35:52 +0300 Subject: [PATCH] feat(dogfood/coder): restart container unless stopped (#25382) Add `restart = "unless-stopped"` to the dogfood workspace container so it automatically recovers from crashes, daemon restarts or server reboots without requiring manual intervention. --- dogfood/coder/main.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/dogfood/coder/main.tf b/dogfood/coder/main.tf index 869be938a8..663e887582 100644 --- a/dogfood/coder/main.tf +++ b/dogfood/coder/main.tf @@ -854,6 +854,7 @@ resource "docker_container" "workspace" { # CPU limits are unnecessary since Docker will load balance automatically memory = data.coder_workspace_owner.me.name == "code-asher" ? 65536 : 32768 runtime = "sysbox-runc" + restart = "unless-stopped" # Ensure the workspace is given time to: # - Execute shutdown scripts