Be Your Own Cloud code · PART 5 — GOING FURTHER

Chapter 27 Staying Current: Updates, Breaking Changes, and a Maintenance Rhythm

1 block · p. 123 in the paperback

Updating a Service Safely

# p. 123

Run Terminal, on the server
cd /opt/stacks/<service-name>

# Confirm today's backup ran and is recent
restic snapshots --latest 1

# Edit docker-compose.yml, bump the pinned version tag
# e.g. vaultwarden/server:1.37.3 -> vaultwarden/server:1.37.4

docker compose pull
docker compose up -d

# Watch logs for the first few minutes after any update
docker compose logs -f --tail 50

Reproduced exactly from Be Your Own Cloud, Chapter 27. The book explains what each line does and what to do when it doesn't work. About the book

Something here not working as the book describes? Tell the author.