docs(ops): stop a separate worker container before the Postgres dump too

This commit is contained in:
Marc-André Bombeck committed 2026-10-25 08:04:28 +01:00
1 parent 78bc7183bd
commit eadf4c0f2b
1 file changed
+3 -2
+3 -2
View File
@@ -25,7 +25,8 @@ Take the encryption key's copy out of its safe place first: the dump is
unreadable without it, and this is the moment you would find out.
```bash
# 1. Stop the app so nothing writes while the dump runs.
# 1. Stop the app so nothing writes while the dump runs. If you run the
# worker role in its own container, stop it too: docker compose stop app app-worker
docker compose stop app
# 2. Dump the database in Postgres' custom format.
@@ -61,7 +62,7 @@ docker compose ps db
docker compose exec -T db pg_restore -U healthlog -d healthlog --no-owner \
< healthlog-pg16-<date>.dump
# 7. Start the app and confirm it.
# 7. Start the app (and app-worker, if you run it) and confirm it.
docker compose up -d app
curl -s http://localhost:3000/api/version
```