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.
This commit is contained in:
Mathias Fredriksson
2026-05-15 12:35:52 +03:00
committed by GitHub
parent e8cfff40b4
commit 07be354683
+1
View File
@@ -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