Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(runbooks): hoist the dev-compose caveat above its commands

Yudhi Armyndharisb33cfcc2118e
diff --git a/docs/11-operational-runbooks.md b/docs/11-operational-runbooks.md
index b1d819086..a8253f05d 100644
--- a/docs/11-operational-runbooks.md
+++ b/docs/11-operational-runbooks.md
@@ -431,6 +431,10 @@ export BACKUP_DIR="/backups/openwa"
curl -H "X-API-Key: $API_KEY" \
http://localhost:2785/api/infra/export-data > "$BACKUP_DIR/export-data.json"
+# Started with docker-compose.dev.yml (the README Quick Start)? Add `-f docker-compose.dev.yml`
+# to every docker compose command in this runbook, the Rollback block included, and write `openwa`
+# wherever a command names the `openwa-api` service (steps 6 and 7, rollback step 2).
+
# 4. Stop services
docker compose down
@@ -439,9 +443,6 @@ docker compose down
# no `image:` tag to edit and `docker compose pull` never updates the app, so upgrade the source:
git pull
# or pin to a release: git checkout v<new-version>
-# Started with docker-compose.dev.yml (the README Quick Start)? Add `-f docker-compose.dev.yml`
-# to every docker compose command in this runbook, the Rollback block included, and write `openwa`
-# wherever a command names the `openwa-api` service (steps 6 and 7, rollback step 2).
# 6. Build the new image
docker compose build openwa-api
diff --git a/docs/14-migration-guide.md b/docs/14-migration-guide.md
index c6ec3de8a..7d647f0fa 100644
--- a/docs/14-migration-guide.md
+++ b/docs/14-migration-guide.md
@@ -681,6 +681,11 @@ chain by hand with `npm run migration:run:main`.
# upgrade.sh — same shape for a patch or a minor
set -e
+# Started with docker-compose.dev.yml (the README Quick Start)? Add `-f docker-compose.dev.yml` to
+# every docker compose command in this script and in the migration block right after it, and write
+# `openwa` wherever a command names the `openwa-api` service. Do NOT carry the flag up to the
+# `--profile postgres` commands in 14.3: postgres exists only in the production compose file.
+
# 1. Backup: both databases + session auth + media + plugin state
./scripts/backup.sh
@@ -690,8 +695,6 @@ docker compose down
# 3. Move to the new version
# The repo's compose file BUILDS the API image from source:
git pull && docker compose up -d --build
-# Started with docker-compose.dev.yml (the README Quick Start)? Add `-f docker-compose.dev.yml`
-# to every docker compose command here.
# Deployments pinned to a published image instead (ghcr.io/rmyndharis/openwa:<version>)
# bump the tag in their compose file, then: docker compose pull && docker compose up -d