mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
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:
committed by
GitHub
parent
e8cfff40b4
commit
07be354683
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user