echo6-docs/vault/runbooks/meshai-prod-compose-override.md
echo6-autocommit ef8b1e0bd9 auto: docs sync 2026-07-13T12:00:23+00:00
Files changed: engine/.embcache.json engine/changelog.md engine/lint-report.md vault/.trash/2026-06-19.md vault/docs/hardware/environment.md vault/docs/hardware/ip-allocation.md vault/docs/matrix/archivist.md vault/docs/matrix/matrix_host.md vault/docs/matrix/mautrix_signal.md vault/docs/matrix/synapse.md vault/docs/matrix/synapse_retention_discovery.md vault/docs/navi/cc-rules.md vault/docs/navi/deployment.md vault/docs/navi/themes.md vault/docs/services/ots-setup.md vault/docs/services/services.md vault/docs/services/usenet.md vault/docs/software/authentik.md vault/docs/software/caddy.md vault/docs/software/central.md vault/docs/software/dns.md vault/docs/software/geo-tools.md vault/docs/software/navi.md vault/docs/software/recon.md vault/docs/software/searxng.md vault/glossary.md vault/notes/echo6-landing-page-data-export.md vault/notes/ia-download-queue.md vault/projects/advbbs-project.md vault/projects/argus.md vault/projects/deploy-livesync.md vault/projects/fleet-patch-audit.md vault/projects/fleet-platform-baseline.md vault/projects/matrix-synapse-deployment.md vault/projects/meshai-config-hot-apply.md vault/projects/meshai-region-routing-plan.md vault/projects/meshai.md vault/projects/meshcore-transport.md vault/projects/meshtastic-headscale-runbook.md vault/projects/mmud-project.md vault/projects/nominatim-v5-reimport.md vault/runbooks/add-peertube-channel.md vault/runbooks/authentik-access-groups.md vault/runbooks/authentik-create-invitation.md vault/runbooks/authentik-oidc-application.md vault/runbooks/authentik-upgrade.md vault/runbooks/central-deploy-cutover.md vault/runbooks/ct-runbook.md vault/runbooks/edge2-access-reference.md vault/runbooks/expose-service-contabo.md vault/runbooks/expose-service-edge2.md vault/runbooks/expose-service-home.md vault/runbooks/fleet-magicdns-resolved-migration.md vault/runbooks/headless-browser-page-verification.md vault/runbooks/headscale-oidc-boot-order.md vault/runbooks/headscale-onboard-node.md vault/runbooks/ia-cli-reference.md vault/runbooks/ia-download-mirror.md vault/runbooks/idahomesh-bridge-setup.md vault/runbooks/idahomesh-vpn-device-setup.md vault/runbooks/lxc-service-migration.md vault/runbooks/mailcow-create-mailbox.md vault/runbooks/meshai-prod-compose-override.md vault/runbooks/meshmonitor-password-reset.md vault/runbooks/meshtastic-sidecar-node.md vault/runbooks/meshtasticd-sim-nodes-runbook.md vault/runbooks/nordvpn-lxc.md vault/runbooks/peertube-remote-runner.md vault/runbooks/pg-backup.md vault/runbooks/pi-nas-omv-runbook.md vault/runbooks/pipeline-patterns.md vault/runbooks/proxmox-create-ubuntu-vm.md vault/runbooks/proxmox-onboard-node.md vault/runbooks/pymc-repeater-kiss-tnc-reenumeration.md vault/runbooks/recon-operations.md vault/runbooks/recon-service-integration.md vault/runbooks/syncthing-add-node.md vault/runbooks/toc-cortex-pve9.2-update.md vault/session-resume/SESSION-HANDOFF-meshai-test.md
2026-07-13 12:00:23 +00:00

77 lines
3.4 KiB
Markdown

---
title: meshai prod compose override (cutover state + MeshCore radio)
type: runbook
tags:
- mesh
aliases: []
related:
- [[meshai-region-routing-plan]]
- [[meshcore-transport]]
- [[meshai]]
- [[meshai-config-hot-apply]]
- [[SESSION-HANDOFF-meshai-test]]
updated: 2026-07-13
---
# meshai prod compose override
Backup + restore for `docker-compose.override.yml` on **CT 108** (the [[meshai]]
production host). This file is **untracked and prod-only** — it exists nowhere
but `/home/zvx/meshai/work/docker-compose.override.yml`, is not in the public
`zvx-echo6/meshai` repo, and carries no git trace. If the deploy tree is
re-cloned or wiped, production silently reverts to shadow-mode alerts and loses
the MeshCore radio. This runbook is its durable copy.
Docker Compose auto-merges `docker-compose.override.yml` over the committed
`docker-compose.yml`, so both settings below are live without any extra flag.
## Verbatim contents (as of 2026-07-07)
```yaml
services:
meshai:
environment:
- MESHAI_CUTOVER_CATEGORIES=earthquake_event,geomagnetic_storm,rf_propagation_alert,avalanche_warning,avalanche_watch,weather_warning,weather_statement,work_zone,road_incident,road_closure,traffic_congestion,stream_flow,wildfire_declared,wildfire_incident,wildfire_closed
devices:
- /dev/meshcore-rak:/dev/meshcore-rak
```
## What each line does
- **`MESHAI_CUTOVER_CATEGORIES`** — the staged-cutover switch consumed by
`meshai/notifications/cutover.py` (`is_cutover()`). Each hazard category is
migrated onto the shared formatter+decider pipeline in shadow-only mode first
(old handler broadcasts live; new code dry-runs and logs mismatches to
`/app/data/shadow/<category>.jsonl`). Adding a category name here **flips it
live** onto the new formatter+decider and stops the shadow comparison. The
list above is effectively the full hazard set → the all-native cutover is
complete in prod. Empty/unset = nothing cut over (pure shadow bake).
Note: the three `wildfire_*` categories are *also* force-enabled directly in
code (`NATIVE_ALWAYS_DECIDE` in `cutover.py`) regardless of this var, because
the fire decider itself is the dedup/cooldown gate.
- **`devices: /dev/meshcore-rak`** — passes the RAK4631 MeshCore USB radio on
the utility host into the container at a stable udev symlink path. Without it
the container cannot see the MeshCore hardware (see [[meshcore-transport]]).
Both are [[deployment]] state (cutover progress + host-specific device path), which
is why they live in an override rather than the committed public compose file.
## Restore
```bash
# from root@utility (100.64.0.5); zvx has no sudo on CT 108
pct exec 108 -- bash -lc 'cat > /home/zvx/meshai/work/docker-compose.override.yml <<"EOF"
services:
meshai:
environment:
- MESHAI_CUTOVER_CATEGORIES=earthquake_event,geomagnetic_storm,rf_propagation_alert,avalanche_warning,avalanche_watch,weather_warning,weather_statement,work_zone,road_incident,road_closure,traffic_congestion,stream_flow,wildfire_declared,wildfire_incident,wildfire_closed
devices:
- /dev/meshcore-rak:/dev/meshcore-rak
EOF'
# then rebuild/recreate so the merge takes effect
pct exec 108 -- bash -lc 'cd /home/zvx/meshai/work && docker compose up -d'
```
Verify after restore: `docker exec meshai printenv MESHAI_CUTOVER_CATEGORIES`
returns the list, and `docker exec meshai ls -l /dev/meshcore-rak` shows the
device inside the container.