Skip to content

Add a reliable MongoDB replica setup runbook - #766

Merged
tdurieux merged 4 commits into
mainfrom
codex/clarify-mongodb-bind-address
Jul 30, 2026
Merged

Add a reliable MongoDB replica setup runbook#766
tdurieux merged 4 commits into
mainfrom
codex/clarify-mongodb-bind-address

Conversation

@tdurieux

@tdurieux tdurieux commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • replace the abbreviated instructions with a complete production runbook covering backup, Tailscale, both environment files, key distribution, conversion, initial sync, application cutover, operations, and rollback
  • add deterministic Docker aliases for the advertised mongo-primary and mongo-secondary member names
  • map cross-server names explicitly to Tailscale addresses instead of relying on container MagicDNS behavior
  • add preflight endpoint checks and wait for a writable primary before allowing the next step
  • document fixes for the keyfile, missing --replSet, hostname self-mapping, connectivity, and application URI errors

Validation

  • shell syntax and ShellCheck (when installed)
  • primary and secondary Docker Compose rendering
  • required hostname/address interpolation
  • whitespace checks

Follow-up to #765 after validating the procedure against the setup failures encountered during deployment.

@tdurieux tdurieux changed the title Clarify MongoDB Tailscale bind addresses Add a reliable MongoDB replica setup runbook Jul 30, 2026
@tdurieux
tdurieux merged commit e54b78c into main Jul 30, 2026
2 checks passed
@tdurieux
tdurieux deleted the codex/clarify-mongodb-bind-address branch July 30, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant