Repository navigation
Conversation
ssh_deploy ran prod and staging with --rm and no restart policy, so a Docker daemon restart deleted both containers and left nginx with no upstream. A package upgrade on 2026-11-21 restarted Docker and took recordsponge.com down with 502s for about 40 hours. unless-stopped brings the containers back after a daemon restart or a reboot. The docker rm -f before each run still replaces the old container on deploy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
make ssh_deploystartedprodandstagingwithdocker run --rm -dand no restart policy. When the Docker daemon restarts, it stops the containers, and--rmthen deletes them. Nothing recreates them, so nginx has no upstream on ports 3031/3032 and returns 502.On 2026-11-21 at 05:54 UTC, an
apt upgradeon the droplet upgraded docker-ce (27 → 29) and containerd (1.7 → 2.4), which restarted the daemon. recordsponge.com returned 502 for about 40 hours, until the containers were started again by hand on 2026-11-22.Change
--rmbecomes--restart unless-stopped. The containers come back after a daemon restart or a reboot. Thedocker rm -f $(RS_ENV)before each run still replaces the container on every deploy.The running
prodandstagingcontainers were started with this policy during recovery, so the droplet matches this change already.🤖 Generated with Claude Code